Whether there can be main inside another main?If so how does
it work?
Answer Posted / divyansh
main marks the beginning of a program, 2 direct mains can't
be there as it will make the compiler dumb!(literally),in
this case it will give an error, or an infinite loop
operation will be executed.
| Is This Answer Correct ? | 21 Yes | 3 No |
Post New Answer View All Answers
Do variables need to be initialized?
What is static and volatile in c?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Describe the header file and its usage in c programming?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
What is the 'named constructor idiom'?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
Tell me when would you use a pointer to a function?
What is the difference between array and structure in c?
What is the purpose of clrscr () printf () and getch ()?
What is the most efficient way to count the number of bits which are set in an integer?
Do you know the purpose of 'register' keyword?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
How can I trap or ignore keyboard interrupts like control-c?