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

ya its absolutely any where in the program

Is This Answer Correct ?    2 Yes 1 No

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

Answer / ram basa

any where in the program

Is This Answer Correct ?    2 Yes 1 No

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

Answer / iftekhar qurashi

last function in the program to avoid prototyping.
if we write it as a first function and other functions is declared after main(), then main function can't find it.

but it can be declared anywhere in the program when we declared every function except main() in the beginning of program

for other consultancy you can mail me

regards
iftekhar qurashi

Is This Answer Correct ?    1 Yes 0 No

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

Answer / arava krishnaveni

any where in the program

Is This Answer Correct ?    1 Yes 0 No

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

Answer / vishwanath g. desai

d. Any where in the program, because it is a top down
program ok I agree with that, actually the feature wise we
have to write the first but now the compiler agree with the
answer d. While the program execute means it execute the
first main().

Is This Answer Correct ?    0 Yes 1 No

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

Answer / aarti giri

last function in the program

Is This Answer Correct ?    0 Yes 1 No

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

Answer / katrina

main shouldnt be written in c programming but infact it is
main()

Is This Answer Correct ?    0 Yes 3 No

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

Answer / mathan

a.the first functioon in the program

Is This Answer Correct ?    3 Yes 24 No

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

Answer / jitender mahender

the first function in the program.

Is This Answer Correct ?    8 Yes 32 No

Post New Answer

More C Interview Questions

what is the output of the following program? main() { int c[]={2,8,3,4,4,6,7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf("%d",*c); ++q; } for(j=0;j<5;j++) { printf("%d",*p); ++p; } }

4 Answers  


what is the different between data structure and data type?

1 Answers   Ignou,


suppose we use switch statement and we intilize years name using enum statement like(jan,feb,mar,------dec) we take integer value as an input .question is that the month which we analyz is from 0 to 11 bt if i enter 12 than how he again starts from begning and print jan

1 Answers  


What is the purpose of ftell?

0 Answers  


What is nested structure?

0 Answers  






main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); } wat is the o/p and how?

12 Answers   Tech Mahindra,


What are the advantages of using macro in c language?

0 Answers  


What is formal argument?

0 Answers  


What is function definition in c?

0 Answers  


What does d mean?

0 Answers  


What is #pragma directive?how it is used in the program? what is its advantages and disadvantages?

2 Answers  


What is a union?

0 Answers  


Categories