Can a program have multiple main() functions?



Can a program have multiple main() functions?..

Answer / nashiinformaticssolutions

No, only one main() function is allowed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is exit() function?

0 Answers  


void main() { for(; 0 ;) ... { printf("hello"); ... } getch(); }

1 Answers  


Is it possible to run a c program without using main?If yes HOW??

13 Answers   Wipro,


palindrome for strings and numbers----Can anybody do the prog?

6 Answers   CTS, TCS, Vipro Lifescience Pvt,


What is scope rule of function in c?

0 Answers  


Is int a keyword in c?

0 Answers  


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

0 Answers   Wilco,


What are the advantages of external class?

0 Answers  


Which is best book for data structures in c?

0 Answers  


Write a C program to print 1 2 3 ... 100 without using loops?

15 Answers   Hindalco,


What is #pragma statements?

0 Answers  


How many levels of indirection in pointers can you have in a single declaration?

0 Answers   Agilent, ZS Associates,


Categories