0

What is the rationale for the header files in helpers.c? For example there is cs50.h but not stdio.h even though the functions are all stdio except for bool which is in neither CS50 nor helpers. And why include header.h, when the functions are written there in the file.

#include "cs50.c"
#include "helpers.c"       

/**
* Returns true if value is in array of n values, else false.
*/
bool search(int value, int values[], int n)
{

Thank you for your help!

2
  • Please don't ask several unrelated questions all at once - this is not a discussion forum. If you have many different questions, it's better to ask them separately. That way readers can search for any of the questions individually, their answers can be voted on individually, and each gets the attention it deserves. Questions like this are typically closed.
    – Air
    Commented Sep 12, 2014 at 23:33
  • 1
    ok I'll try to split it into different questions. No problem! Commented Sep 13, 2014 at 6:27

0

You must log in to answer this question.

Browse other questions tagged .