What function initalizes variables in a class:

a) Destructor

b) Constitutor

c) Constructor


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is the keyword auto for?

0 Answers  


How is objective c different from c++?

0 Answers  


Floating point representation and output seems to be compiler dependent?

1 Answers  


Write a String class which has: 1) default constructor 2) copy constructor 3) destructor 4) equality operator similar to strcmp 5) constructor which takes a character array parameter 6) stream << operator

2 Answers   HCL, Lehman Brothers, Zoomerang,


Define the operators that can be used with a pointer.

0 Answers  


What is the this pointer?

0 Answers  


whats the size of class EXP on 32 bit processor? class EXP { char c1; char c2; int i1; int i2; char *ptr; static int mem; };

5 Answers   Huawei,


What is the difference between stack and heap memory?

1 Answers  


an integer constant must have atleast one a) character b) digit c) decimal point

0 Answers  


Which one is a preferred language C or C++? Why?

0 Answers  


What do you mean by persistent and non persistent objects?

1 Answers  


What do you mean by volatile and mutable keywords used in c++?

0 Answers  


Categories