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 / kalyan chukka
Loop will Repeated 10 times .in this program main function
is called it self 10 times.So the loop will repeated 10 times
Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Which control loop is recommended if you have to execute set of statements for fixed number of times?
can we implement multi-threads in c.
What is function prototype in c language?
Can 'this' pointer by used in the constructor?
How can a string be converted to a number?
Write a program for Overriding.
What do you mean by dynamic memory allocation in c? What functions are used?
can anyone suggest some site name..where i can get some good data structure puzzles???
How pointer is different from array?
List the different types of c tokens?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
What are the advantages and disadvantages of c language?
Why enum is used in c?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
How is = symbol different from == symbol in c programming?