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

Answer Posted / chandrakala

3.both are works well.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c definition?

753


What is getch () for?

681


What is static volatile in c?

580


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

749


What is the general form of function in c?

615






what are # pragma staments?

1632


Explain how can you be sure that a program follows the ansi c standard?

870


What is difference between structure and union?

606


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

712


In C language what is a 'dangling pointer'?

644


What is the function of volatile in c language?

670


Differentiate between #include<...> and #include '...'

621


What is else if ladder?

614


Which header file should you include if you are to develop a function which can accept variable number of arguments?

815


How to throw some light on the b tree?

607