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

Answers were Sorted based on User's Feedback



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

Answer / ayushi rastogi

Int

Is This Answer Correct ?    14 Yes 2 No

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

Answer / milind furia

int and void(if u consider this as a datatype) only

Is This Answer Correct ?    4 Yes 6 No

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

Answer / umashankar mishra

c returns int data type
whereas c++ return void

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More OOPS Interview Questions

I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

0 Answers  


Why is encapsulation used?

0 Answers  


In the following declaration of main, "int main(int argc, char *argv[])", to what does argv[0] usually correspond? 1) The first argument passed into the program 2) The program name 3) You can't define main like that

6 Answers  


Have you ever used threads?

3 Answers   Adobe, IBM,


When is a memory allocated to a class?

11 Answers  






What is polymorphism used for?

0 Answers  


what is function over loading?

5 Answers  


How to deploy web appliction in web logic ?

1 Answers   Unisys,


How to Increment the value of the empid E001 for each and every employee by using the programe?

1 Answers   Accenture,


You attempt to query the data base with this command: SELECT name, salary FROM employee WHERE salary=(SELECT salary FROM employee WHERE last name='Wagner' OR dept no=233) Choose most appropriate option from the following: 1)Sub-queries are not allowed in the where clause. 2)a multiple row sub-query used with a single row comparison operator. 3)a single row query is used with a multiple row comparison operator.

10 Answers   Zycus Infotech,


1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how do you make a class member visible aouside its class? 4.what is the default visibility of a class data member? 5.what are the advantages of oop over the structured programing?

6 Answers  


what is multithreading in c++ , what is difference between multithreading and singlethreading.

4 Answers  


Categories