whitch value return void main?

Answer Posted / trushali

when we write void main it means its not returning any value
to main function,so we do not need write return 0 at the end
of program.
but when we write main only then by default compiler
consider it as int main,and at the end we need to write
return 0(means successful completion of the program without
any problem).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are multidimensional arrays?

653


What is use of pointer?

583


Can variables be declared anywhere in c?

614


Is c is a low level language?

557


What is default value of global variable in c?

558






Explain how can I right-justify a string?

618


How will you divide two numbers in a MACRO?

705


What is pointer in c?

732


Explain what are the advantages and disadvantages of a heap?

594


What language is windows 1.0 written?

571


Tell me when would you use a pointer to a function?

603


Explain built-in function?

585


What are runtime error?

623


What are header files in c?

614


What is the purpose of clrscr () printf () and getch ()?

591