why does the execution of a c++ program start with main()???
Answer Posted / ajaykumar(me-tu)
I agree with above answer(given by Sujith). It is not
necessary the execution of program always start with main
function. Using pragma startup directive we execute any
function before executing main function. Here we give one
example in c language.
#include<stdio.h>
void print()
{
printf("\nThis is print function");
}
#pragma startup print
void main()
{
printf("\nThis is main function");
}
Output:
This is print function
This is main function
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
What is stl stack?
What is a stl vector?
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999
What is the stl, standard template library?
Who created stl?
Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A.Explain how a pointer to function can be declared in C++? B.List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header (“Include”) Files.
What does stl stand for in basketball?
sir please send me bpcl previous question papers
What is meant by stl in c++?
Is stl part of c++ standard?
totoo po ba ang manga aliens!
Who wrote stl?
What is the use of stl?
Define stl.
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher