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
How are pointers declared in c?
What is the difference between local variable and global variable in c?
What is a string?
Differentiate between full, complete & perfect binary trees.
How do c compilers work?
what are the 10 different models of writing an addition program in C language?
What is the difference between printf and scanf in c?
What are the various types of control structures in programming?
Explain how can I prevent another program from modifying part of a file that I am modifying?
What is union and structure in c?
What is a ternary operator in c?
Define recursion in c.
What are the types of macro formats?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What are the different properties of variable number of arguments?