Main must be written as
a.the first function in the program
b.Second function in the program
c.Last function in the program
d.any where in the program
Answer Posted / devvv
main function is a basic in c programming
language.generally main is written first.but when executing
modular programs ,to avoid prototyping, other functions
are written first.so main can be written anywhere in a
program.but atleast one of the other functions must be
declared in main.
Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
How can I change the size of the dynamically allocated array?
Why shouldn’t I start variable names with underscores?
Why is #define used?
What Is The Difference Between Null And Void Pointer?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
What is #line used for?
Explain what header files do I need in order to define the standard library functions I use?
What happens if header file is included twice?
What is difference between function overloading and operator overloading?
What is use of bit field?
What is use of #include in c?
What’s the special use of UNIONS?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What does the message "automatic aggregate intialization is an ansi feature" mean?
How can I implement sets or arrays of bits?