Can a program run without main?
No Answer is Posted For this Question
Be the First to Post Answer
write a C++ programming :if the no is between 32 to 50 it will be odd.
Who calls main function?
Is c++ free?
What is insertion sorting?
What is boyce codd normal form in c++?
class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects.
What is the difference between a definition and a declaration?
In a class only declaration of the function is there but defintion is not there then what is that function?
How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.
Explain the difference between class and struct in c++?
A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.
Does c++ have arraylist?