What are the valid types of data that the main () can
return in C/C++ language

Answer Posted / umashankar mishra

c returns int data type
whereas c++ return void

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is destructor oops?

827


What is object in oops?

821


Write a program to reverse a string using recursive function?

2017


Give two or more real cenario of virtual function and vertual object

2064


What is encapsulation with example?

781


What is solid in oops?

801


How to hide the base class functionality in Inheritance?

840


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1629


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2297


How do you achieve runtime polymorphism?

736


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6351


Can abstract class have normal methods?

783


What is polymorphism explain its types?

904


What is super in oop?

821


What are the three main types of variables?

824