Q:

C Program without main() function

belongs to collection: C Programs

0

We can write c program without using main() function. To do so, we need to use #define preprocessor directive.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include<stdio.h>    
 #define start main    
void start() {    
   printf("Hello");    
}   

Output:

Hello

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Matrix multiplication in C... >>
<< Assembly program in C...