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
What are structures and unions? State differencves between them.
Explain Basic concepts of C language?
What is array of structure in c programming?
in iso what are the common technological language?
Explain how do you print only part of a string?
What are the advantages of using linked list for tree construction?
Differentiate between declaring a variable and defining a variable?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
given post order,in order construct the corresponding binary tree
How can I implement sets or arrays of bits?
What is the difference between single charater constant and string constant?
What are the differences between new and malloc in C?
What does a pointer variable always consist of?
What is variable initialization and why is it important?
What are the various types of control structures in programming?