what is the diff b/n c and c++
a. dynamic scoping
b. nested switching
c. declaration of variables in any code block
d. separation of compilation and linking
Answers were Sorted based on User's Feedback
What is type of 'this' pointer?
Evaluate: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); a) 10 b) 11 c) 1
What are the advantages of c++? Explain
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
Explain shallow copy?
Explain Memory Allocation in C/C++ ?
What are features of c++?
What is singleton pattern in c++?
Does c++ vector allocate memory?
How would you represent an error detected during constructor of an object?
Can a constructor be private?
What does it mean to declare a member function as virtual?