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
Explain the process of converting a Tree into a Binary Tree.
What is the use of the function in c?
How can I determine whether a machines byte order is big-endian or little-endian?
is it possible to create your own header files?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
How many types of operator or there in c?
What is the purpose of main() function?
What is a buffer in c?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
What is break in c?
What is calloc in c?
What are the different properties of variable number of arguments?
What does c mean in basketball?
How can I read and write comma-delimited text?
What is storage class?