answersLogoWhite

0

It depends on the context.

- it means "no" in functions that check something (like "isatty", "isascii", "isdigit")

- it means "success" in functions whose return value is an error code (0 means no error)

- it means "fail" or "not found" in functions that return a pointer (like strchr or fopen).

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is a prototype within a program?

Prototyping is done (at least in C/C++) to declare a function and tell the compiler how to use it before the int main(void) part of the program is run. The function is declared after main and is usually done as a style thing. example int function(int); int main(void) { int anumber = 1; x = function(anumber); return 0; } int function(int number) { //do something return number; } et cetera et cetera...


Which Keyword is used to return some value from a function?

return var_name; e.g int fun() { int x=...; return x; }


What an example of a function?

In C-programming: int main (void) { return 0; }


Why return 1 is used in int main function in c?

Returning a value of 1 (or any value besides zero) from main indicates an error.


How do you call a function in the main function?

name ( parameters )example:int main (int argc, char **argv){int i;for (i=0; i


What is a function definition in c?

Example: int main (void) { puts ("Here is a function definition"); return 0; }


Can you give an example on how you pass array elements to a function?

int main void (int argc, char *argv[]){int i;for (i=0; i


When is a function executed and where should a function prototype and function definition appear in a source program?

If you want to use prototype it has to be declared before main(). If you have a function of type double with one argument of type int (with name arg), and the function name is func, then we have:#include ...double func(int arg);...int main(...){...return 0;}...double func(int arg){...}


What are the functions of 'C'?

Pieces of program-code, they are identified by their names. Example for function-declaration: int main (void); Example for function-definition: int main (void) { puts ("Hello, world!"); return 0; }


How is main function declared?

int main (void) or int main(int a, char **p)


How you call a function in main?

name ( parameters )example:int main (int argc, char **argv){int i;for (i=0; i


Can you use the float as a return type of the main function in 'C' language?

No, it should be int type or void.