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 / sudipta panja

(d)--execution starts from main,i.e. compiler starts
compiling from main but the posn of main is not fixed.it can
be anywhere.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are header files and explain what are its uses in c programming?

912


I came across some code that puts a (void) cast before each call to printf. Why?

999


What does %p mean?

855


What does & mean in scanf?

869


Explain can static variables be declared in a header file?

944


What does the c preprocessor do?

883


What is volatile variable how do you declare it?

806


how to write a c program to print list of fruits in alpabetical order?

2095


What are the scope of static variables?

872


What is a function in c?

1245


Why cant I open a file by its explicit path?

838


What is pass by reference in c?

903


What will be the outcome of the following conditional statement if the value of variable s is 10?

1080


pierrot's divisor program using c or c++ code

1996


Explain that why C is procedural?

926