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

Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

819


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

779


Should I learn data structures in c or python?

695


Why do we use namespace feature?

718


What is the size of structure in c?

824






A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1387


Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

3839


What is a keyword?

885


What is #include called?

699


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1744


How do I create a directory? How do I remove a directory (and its contents)?

736


How would you rename a function in C?

735


How does placing some code lines between the comment symbol help in debugging the code?

689


What is the difference between int main and void main?

700


Explain what is the difference between #include and #include 'file' ?

710