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
Do string constants represent numerical values?
What is unsigned int in c?
What is const volatile variable in c?
What are the advantages of using Unions?
Do variables need to be initialized?
How can a string be converted to a number?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What is c mainly used for?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
How do you construct an increment statement or decrement statement in C?
What is null in c?
Once I have used freopen, how can I get the original stdout (or stdin) back?
Why is c platform dependent?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
Explain bit masking in c?