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 / iftekhar qurashi
last function in the program to avoid prototyping.
if we write it as a first function and other functions is declared after main(), then main function can't find it.
but it can be declared anywhere in the program when we declared every function except main() in the beginning of program
for other consultancy you can mail me
regards
iftekhar qurashi
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write program to remove duplicate in an array?
Why string is used in c?
Write a program to print factorial of given number without using recursion?
State two uses of pointers in C?
When should volatile modifier be used?
Write a simple code fragment that will check if a number is positive or negative.
What is array of pointers to string?
What are valid signatures for the Main function?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
How to declare pointer variables?
regarding pointers concept
Why calloc is better than malloc?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
What is a structure member in c?
What is hash table in c?