why all c++ program must have default constructor?

Answer Posted / ashutosh shashi

To initialized objects of class, if you do not create your
own.Its a inbuilt feature of C++ compiler.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c++ have string data type?

877


A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.

1937


What is the best it certification?

821


What is a null object in c++?

844


How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

768


Why do we learn c++?

727


What is buffer and example?

706


Refer to a name of class or function that is defined within a namespace?

833


What is the use of "new" operator?

879


what is data abstraction in C++?

834


What is a catch statement?

779


How a pointer differs from a reference?

963


How do you print a string on the printer?

776


Is swift faster than c++?

750


What is c++ array?

765