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

How can I prevent another program from modifying part of a file that I am modifying?

848


How do you search data in a data file using random access method?

1099


What is a good way to implement complex numbers in c?

813


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1176


Explain how can I remove the trailing spaces from a string?

825


Explain how do you determine the length of a string value that was stored in a variable?

922


Why is c used in embedded systems?

868


What are local variables c?

777


How can I ensure that integer arithmetic doesnt overflow?

841


what are the different storage classes in c?

887


What does *p++ do?

806


Why doesnt this code work?

834


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

2081


Stimulate calculator using Switch-case-default statement for two numbers

2707


what is the structure pointer?

1866