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

Answer Posted / milind furia

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

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 4 pillars of oop?

884


Whats is abstraction in oops?

827


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1966


What is coupling in oops?

816


What is abstraction and encapsulation?

771


Is react oop?

810


what type of question are asked in thoughtworks pair programming round ?

1959


What is debug class?what is trace class? What differences are between them? With examples.

1847


Which language is not a true object oriented programming language?

864


Can we have inheritance without polymorphism?

788


What is the real time example of inheritance?

856


any one please tell me the purpose of operator overloading

2159


write a program to find 2^n+1 ?

1775


What is use of overloading?

848


What is destructor example?

770