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
Write a c program to demonstrate character and string constants?
How many types of errors are there in c language? Explain
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
write an algorithm to display a square matrix.
What is a void pointer? When is a void pointer used?
What is static identifier?
What is struct node in c?
What is #define?
Describe wild pointers in c?
What are linked lists in c?
Why is c called c not d or e?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
write a c program for swapping two strings using pointer
How to write a code for reverse of string without using string functions?