Whether there can be main inside another main?If so how does
it work?
Answer Posted / divyansh
main marks the beginning of a program, 2 direct mains can't
be there as it will make the compiler dumb!(literally),in
this case it will give an error, or an infinite loop
operation will be executed.
| Is This Answer Correct ? | 21 Yes | 3 No |
Post New Answer View All Answers
How is actual parameter different from the formal parameter?
What are the properties of union in c?
What is scope rule of function in c?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
Linked lists -- can you tell me how to check whether a linked list is circular?
How do you view the path?
What are identifiers c?
What is the use of ?
What do header files do?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
What are the types of macro formats?
What is the heap?
what will be the output for the following main() { printf("hi" "hello"); }
Explain what is meant by high-order and low-order bytes?
main() { printf("hello"); fork(); }