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
Is python a c language?
What is signed and unsigned?
Are pointers really faster than arrays?
Explain the term printf() and scanf() used in c language?
what is the different bitween abap and abap-hr?
What is the purpose of macro in C language?
What is a string?
explain what is an endless loop?
What is scanf_s in c?
What are pointers in C? Give an example where to illustrate their significance.
Explain how do you search data in a data file using random access method?
can anyone please tell about the nested interrupts?
How many levels of indirection in pointers can you have in a single declaration?
Why does the call char scanf work?
What is use of bit field?