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
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 |
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 |
Answer / katrina
main shouldnt be written in c programming but infact it is
main()
| Is This Answer Correct ? | 0 Yes | 3 No |
how we do lcm of two no using c simple if while or for statement
Why does this code crash?
What are the back slash character constants or escape sequence charactersavailable in c?
How Many Header Files in c?
c program to input values in a table(using 2D array) and print odd numbers from them
Write a c program to Find the name that you entered is male name or female name? Such as Sunjay is name of male and Payal is name of female
will u give me old quesrion papers for aptitude for L & t info tech?
main is a predefined or user define function if user defined why? if predefined whay?
Is there any possibility to create customized header file with c programming language?
Explain the difference between malloc() and calloc() function?
I didn't count the ducks that I saw in line, but I do remember that one duck was in front of two ducks, another duck behind two ducks. How many ducks did I see?
explain what are actual arguments?