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

how to exchnage bits in a byte b7<-->b0 b6<-->b1 b5<-->b2 b4<-->b3 please mail me the code if any one know to rajeshmb4u@gmail.com

3 Answers   Honeywell, Huawei,


What is default value of global variable in c?

0 Answers  


How can I change their mode to binary?

0 Answers  


main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }

5 Answers   Vector, Vector Solutions,


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

0 Answers  






What is malloc() function?

0 Answers  


explain memory layout of a C program

2 Answers  


What is the g value paradox?

0 Answers  


What is c standard library?

0 Answers  


What is a far pointer?What is the utility?

4 Answers  


How is = symbol different from == symbol in c programming?

0 Answers  


main() { unsigned int k = 987 , i = 0; char trans[10]; do { trans[i++] =(char) (k%16 > 9 ? k%16 - 10 + 'a' : '\0' ); } while(k /= 16); printf("%s\n", trans); }

4 Answers   Vector,


Categories