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 / devvv

main function is a basic in c programming
language.generally main is written first.but when executing
modular programs ,to avoid prototyping, other functions
are written first.so main can be written anywhere in a
program.but atleast one of the other functions must be
declared in main.

Is This Answer Correct ?    11 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is python a c language?

792


What is signed and unsigned?

839


Are pointers really faster than arrays?

762


Explain the term printf() and scanf() used in c language?

841


what is the different bitween abap and abap-hr?

1952


What is the purpose of macro in C language?

871


What is a string?

892


explain what is an endless loop?

844


What is scanf_s in c?

858


What are pointers in C? Give an example where to illustrate their significance.

982


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

913


can anyone please tell about the nested interrupts?

1891


How many levels of indirection in pointers can you have in a single declaration?

850


Why does the call char scanf work?

898


What is use of bit field?

1026