Whether there can be main inside another main?If so how does
it work?

Answer Posted / gprabha

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

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many parameters should a function have?

659


Differentiate abs() function from fabs() function.

588


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1438


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

1670


What is dynamic dispatch in c++?

552






How do I create a directory? How do I remove a directory (and its contents)?

598


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1445


Why is it usually a bad idea to use gets()? Suggest a workaround.

894


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

644


Is array a primitive data type in c?

571


What are the types of data files?

720


Why isn't any of this standardized in c? Any real program has to do some of these things.

618


What does a function declared as pascal do differently?

599


Is it possible to have a function as a parameter in another function?

593


How can I implement a delay, or time a users response, with sub-second resolution?

615