Identify the error in the following program.
include<iostream>
using namespace std;
void main()
{
int num[]={1,2,3,4,5,6};
num[1]==[1]num ? cout<<"Success" : cout<<"Error";
}
What is an abstract class?
How does stack look in function calls? When does stack overflow? What can you do to remedy it?
what is friend function in C++?
How does free know the size of memory to be deleted
Write a C++ Program to find Square Root of a number using sqrt() function.
Write a C++ Program to Reverse a Number using while loop.
What is RTTI and why do you need it?
Question on Copy constructor.
What is an algorithm (in terms of the STL/C++ standard library)?
Write a C++ Program to find Addition of Two Numbers.
How will you execute a stack using a priority queue? (Push and pop should be in O (1)).
C++ Public access specifier instead of Private – What is bad ?