Q:

C Program without main() function

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)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now