Is main() is used in the program,,see below example?

void main()
{
int i;
for(i=0;i<10;i++)
main();
}

Then what is the output of the program?

Answer Posted / hari

it will go into an infinite loop.
cheers !!!

for further queries and discussions, just check these out !!!

http://forum.campusmaniac.com/
http://www.campusmaniac.com/

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 4 types of programming language?

813


What extern c means?

764


What’s the special use of UNIONS?

918


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

865


What is a structure and why it is used?

896


What is the size of a union variable?

822


what is the format specifier for printing a pointer value?

826


What are header files? What are their uses?

867


What is the process of writing the null pointer?

810


Explain continue keyword in c

817


Write a Program to find whether the given number or string is palindrome.

1031


What is wrong with this code?

957


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

920


I need previous papers of CSC.......plz help out by posting them.......

2103


What is array within structure?

878