What function initalizes variables in a class:
a) Destructor
b) Constitutor
c) Constructor
What is the keyword auto for?
How is objective c different from c++?
Floating point representation and output seems to be compiler dependent?
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.
What is the this pointer?
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; };
What is the difference between stack and heap memory?
an integer constant must have atleast one a) character b) digit c) decimal point
Which one is a preferred language C or C++? Why?
What do you mean by persistent and non persistent objects?
What do you mean by volatile and mutable keywords used in c++?