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

Answers were Sorted based on User's Feedback



Which of the following is not a valid declaration for main ()? 1) int main() 2) i..

Answer / chandrakala

3.both are works well.

Is This Answer Correct ?    12 Yes 0 No

Which of the following is not a valid declaration for main ()? 1) int main() 2) i..

Answer / k.kavitha

3) They both work

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More C Interview Questions

Explain how can I avoid the abort, retry, fail messages?

0 Answers  


write a program in 'c' to find the value of p[i+1]^n.p,i,n are arguments of a macro and n is a integer

1 Answers  


What is the data segment that is followed by c?

0 Answers  


What are multibyte characters?

0 Answers  


How will you find a duplicate number in a array without negating the nos ?

0 Answers  






Is there something we can do in C but not in C++? Declare variable names that are keywords in C++ but not C.

2 Answers   Infosys,


7. Identify the correct argument for the function call fflush() in ANSI C: A)stdout B)stdin C)stderr D)All the above

10 Answers   Accenture,


What are the different types of pointers?

4 Answers   HCL, TCS,


What is a program flowchart?

0 Answers  


what are the uses of structure?

7 Answers   HCL,


What are the average number of comparisons required to sort 3 elements?

2 Answers   DRDO,


What is the use of header files?

0 Answers  


Categories