No. You can only have one main() function in a C or C++ program.
Note:
If this question means "Will the OS start two threads/processes if I have two public scope 'main' functions in my program?"
then the answer is "No, even if you could link such program, which you cannot."
I don't use that function in C programme.
int main (void) { printf ("One line programme\n"); return 0; }
substracion of any two number program in c
#include(stdio.h) int main ()
you can use strstr()
#include <stdio.h> int main (void) { puts ("abcdefedcba"); return 0; }
int a = 1; int b = 2; int c = a + b; // Sum
You could use an if, but the ternary operator is especially compact for this purpose: result = a > b ? a : b;
Because if you donot use main function in c program, the compiler willnot execute the program.C compiler starts execution from main function itself.
result = a * b * c;
TO use a c language first step is to know about the c language and the steps to use the c progrmming language with the help of any elders or with the teachers. TO use the arrays you have to get th eknowledge of "c" language
There are no methods in C, and you should have only one main function.Methods are associated with a specific class, and there are no classes in c.