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 / k.kavitha

3) They both work

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the bubble sort algorithm.

658


What is the benefit of using #define to declare a constant?

616


hi any body pls give me company name interview conduct "c" language only

1682


What is the difference between memcpy and memmove?

618


How do you list a file’s date and time?

644






How can I sort more data than will fit in memory?

643


Explain how do you override a defined macro?

598


What language is lisp written in?

632


How can I open a file so that other programs can update it at the same time?

674


Can the size of an array be declared at runtime?

623


Explain the difference between call by value and call by reference in c language?

660


Is there any possibility to create customized header file with c programming language?

636


What is a const pointer in c?

681


Difference between constant pointer and pointer to a constant.

627


How many levels deep can include files be nested?

666