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


Please Help Members By Posting Answers For Below Questions

How can I change the size of the dynamically allocated array?

624


Why shouldn’t I start variable names with underscores?

621


Why is #define used?

786


What Is The Difference Between Null And Void Pointer?

636


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

1644






What is #line used for?

575


Explain what header files do I need in order to define the standard library functions I use?

645


What happens if header file is included twice?

650


What is difference between function overloading and operator overloading?

651


What is use of bit field?

765


What is use of #include in c?

590


What’s the special use of UNIONS?

655


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2029


What does the message "automatic aggregate intialization is an ansi feature" mean?

689


How can I implement sets or arrays of bits?

600