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

why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

0 Answers  


all c language question

0 Answers   Wipro,


What is the output for the following program #include<stdio.h> main() { char a[5][5],flag; a[0][0]='A'; flag=((a==*a)&&(*a==a[0])); printf("%d\n",flag); }

5 Answers   ADITI, Wipro,


write a c program to print a given number as odd or even without using loop statements,(no if ,while etc)

10 Answers  


what is meant by the "equivalence of pointers and arrays" in C?

3 Answers   Satyam,


What is the use of typedef in structure in c?

0 Answers  


Explain modulus operator.

0 Answers  


what would be the output of the follwing struct st { char name[20]; int i; float f; }; main() { struct st emp = {"forum"}; printf("%d %f",emp.i,emp.f); }

4 Answers  


write a c/c++ programthat connects to a MYSQL server and checks if the INNoDB plug in is installed on it.If so your program should print the total number of disk writes by MYSQL.

0 Answers   BirlaSoft,


what is the difference between #include<stdio.h> and #include"stdio.h" ?

6 Answers   TCS,


write a program to display the numbers in the following format 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3 4

9 Answers   IBM, NIIT, Winit,


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

0 Answers  


Categories