answersLogoWhite

0

Certainly, you can write a program without main, but you cannot build an executable from it, if that is okay with you.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Where do we write main function in a c program?

Into the source program.


How do you write a programm in c plus plus without using function main?

I don't think its possible. Every C++ program must at least have the main function.


Write a program in C without any functions?

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()


Can a C program be written without main METHOD?

Every program requires an entry point. Main() provides the entry point in C.


How you create c program without semicolon?

int main () {}


How do you write a c program without using scan statements?

#include <stdio.h> int main (void) { puts ("What is a 'scan statement'?!"); return 0; }


Write a c program to have followiing as output?

void main() { printf("followiing"); }


Can you write a C program Without turbo C IDE?

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.


Is c program works without main function?

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


How many essential functions are required to write a c program and write those?

One.int main (void) { return 0; }


How do you get Linux program error in void main in c?

This question cannot be answered without seeing the source program.


Write a Program in c language to find the LCM without using functions?

You're supposed to do your homework yourself. (Mind you, you have to hav at least one function called main.)