Whether there can be main inside another main?If so how does
it work?
Answer Posted / harinath
yes there can be
for example
main()
{
static int count=50;
printf("%d",count--);
while(count>0)
main();
}
here the output is numbers upto 1 then it comes out of it.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the general description for loop statement and available loop types in c?
Stimulate calculator using Switch-case-default statement for two numbers
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What is the sizeof () operator?
What are pointers?
What is difference between Structure and Unions?
Can a variable be both constant and volatile?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
Explain enumerated types in c language?
What is the use of printf() and scanf() functions?
List some of the static data structures in C?
How can you allocate arrays or structures bigger than 64K?
What is difference between array and structure in c?