it returns nothing
No, it should be int type or void.
Actually, it is:int main (void)orint main (int, char **)the point where the execution of the program begins
it is always not necessary to write "void main " in c programming.it depends on the source code we use if we have to return a value then void is not necessary because void returns the null.While coding in borland C++ we need to write void main but we dont need it in dav c++.In C (and C++) the standard allows int main (void) and int main (int argc, char **argv)
You can produce many different errors, here is an example: int main (void) { *(char *)main = 'A'; return 0; }
example: int main (void) { puts ("That's all"); return 0; }
#include<stdio.h> void main() { float a=20,b=5,c=0; c=(a+b)/2; printf("%f",c); getch() }
int main (void) { printf ("One line programme\n"); return 0; }
int main (void) { printf ("space is %d\n", ' '); return 0; }
since, the word 'void' in C programming language means that it does not return any value to the user or calling function....this is usually used to specify a type of function...... for this reason w use 'void'in c program..
this is a void main()int, char, are execution the program and it is not return the void.
Simply don't use Enter key. (You cannot use preprocessor though.) int main (void) { puts ("All in one line"); return 0; }
main() is the function from where the execution starts.