Certainly, you can write a program without main, but you cannot build an executable from it, if that is okay with you.
Into the source program.
I don't think its possible. Every C++ program must at least have the main function.
It is not possible. In C, any program must have at least one function to be able to compile and execute properly: the function main()
Every program requires an entry point. Main() provides the entry point in C.
int main () {}
#include <stdio.h> int main (void) { puts ("What is a 'scan statement'?!"); return 0; }
void main() { printf("followiing"); }
Yes you can write a C program without using turbo C IDE. All you need is a text editor like notepad where you can write your codes and after writting them save the file with .c extension. But for compilling and running the code you will be needing turbo C IDE.
yes a C program can work without a main() function. Though its not the normal C code that you would be writing on ur gcc or turbo C compiler. for example Linux Source code ... does not have a main() function : for details u can visit: http://samarthonweb.blogspot.com/2009/08/c-programe-with-no-main-function.html
One.int main (void) { return 0; }
This question cannot be answered without seeing the source program.
You're supposed to do your homework yourself. (Mind you, you have to hav at least one function called main.)