Answer Posted / ravi joshi
As many of them have answered here, main is a special
function in C/C++ programs. The compiler does not care if
you have defined main or not, but linker does. If linker
finds main defined in the objects being linked, then the
address of main function is placed at the top of execution
stack. And automatically when loader loads the
program/process, the main function gets loaded at the top of
execution stack, and system starts execution using
__crtmain() which internally calls main() of the program/process
| Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
What are global variables and explain how do you declare them?
What are the rules for identifiers in c?
What is meant by 'bit masking'?
What is enumerated data type in c?
Describe the steps to insert data into a singly linked list.
How will you declare an array of three function pointers where each function receives two ints and returns a float?
is it possible to create your own header files?
Do variables need to be initialized?
What is else if ladder?
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. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
When should the const modifier be used?
Can you think of a logic behind the game minesweeper.
Why header files are used?
How do you redirect a standard stream?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA