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

Answers were Sorted based on User's Feedback



Main must be written as a.the first function in the program b.Second function in the program ..

Answer / ningappa

any where in the program

Is This Answer Correct ?    81 Yes 3 No

Main must be written as a.the first function in the program b.Second function in the program ..

Answer / swamy s t

Answer is D. any where in the program.

No matter whereever it is because the program should
starts or begins from main() function only.

Is This Answer Correct ?    30 Yes 3 No

Main must be written as a.the first function in the program b.Second function in the program ..

Answer / manju

d.any where in the program
because the execution of a program begins from the main
function.it doesn't consider the place where the main
function written.

Is This Answer Correct ?    16 Yes 2 No

Main must be written as a.the first function in the program b.Second function in the program ..

Answer / piyush

its d.any where in the program

Is This Answer Correct ?    9 Yes 1 No

Main must be written as a.the first function in the program b.Second function in the program ..

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

Main must be written as a.the first function in the program b.Second function in the program ..

Answer / nathan

any where in the program

Is This Answer Correct ?    8 Yes 2 No

Main must be written as a.the first function in the program b.Second function in the program ..

Answer / guest

d. any where in the program.

Is This Answer Correct ?    6 Yes 1 No

Main must be written as a.the first function in the program b.Second function in the program ..

Answer / maskfriend

d.any where in the program. but it should declare after the
declaration of veriable where it starts execution of the
program

Is This Answer Correct ?    6 Yes 2 No

Main must be written as a.the first function in the program b.Second function in the program ..

Answer / amala v

anywhere in the program

Is This Answer Correct ?    4 Yes 1 No

Main must be written as a.the first function in the program b.Second function in the program ..

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

More C Interview Questions

Explain c preprocessor?

0 Answers  


Write a c program to build a heap method using Pointer to function and pointer to structure ?

0 Answers   Wipro,


What is a double c?

0 Answers  


Explain what is a program flowchart and explain how does it help in writing a program?

0 Answers  


write a c program for greatest of three numbers without using if statment

4 Answers   IBM,






What is meant by gets in c?

0 Answers  


parkside's triangle.. create a program like this.. enter the size: 6 enter the seed: 1 output: 1 23 456 7891 23456 789123 sample2: enter the size: 5 enter the seed: 3 output: 3 45 678 9123 45678 parkside should not exceed 10 while its seed should only be not more than 9..

4 Answers  


Which of the following is not a valid declaration for main ()? 1) int main() 2) int main(int argc, char *argv[]) 3) They both work

2 Answers  


How can I recover the file name given an open stream or file descriptor?

0 Answers  


Write a program to implement queue.

0 Answers   Aricent,


Why cant I open a file by its explicit path?

0 Answers  


write a string copy function routine?

2 Answers  


Categories