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
What is the size of a union variable?
why programs in c are running with out #include
Explain how can I right-justify a string?
What is floating point constants?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
Can two or more operators such as and be combined in a single line of program code?
How can I insert or delete a line (or record) in the middle of a file?
What is scanf_s in c?
What is meant by operator precedence?
What is the correct code to have following output in c using nested for loop?
What are pointers?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
Which node is more powerful and can handle local information processing or graphics processing?
Explain the difference between exit() and _exit() function?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?