Whether there can be main inside another main?If so how does
it work?
Answer Posted / vara
there will be no error but the output will go in infinite
loop
main()
{
int a=2,b=3;
a=a+b;
b=a-b;
a=a-b;
printf("%d",&a);
printf("%d",&b);
main();
getch();
}
| Is This Answer Correct ? | 19 Yes | 5 No |
Post New Answer View All Answers
How can I make it pause before closing the program output window?
Can a variable be both constant and volatile?
how should functions be apportioned among source files?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
What do you mean by dynamic memory allocation in c? What functions are used?
Why does this code crash?
Explain what is wrong with this program statement? Void = 10;
What are 3 types of structures?
Why header file is used in c?
Which is more efficient, a switch statement or an if else chain?
What is the use of void pointer and null pointer in c language?
What are the different properties of variable number of arguments?
What is the difference between malloc calloc and realloc in c?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What is the process to create increment and decrement stamen in c?