Identify the errors in the following program.
#include <iostream>
using namespace std;
void main()
{
int i=5;
while(i)
{
switch(i)
{
default:
case 4:
case 5:
break;
case 1:
continue;
case 2:
case 3:
break;
}
i-;
}
}
How can a C function be called in a C++ program?
Identify the error in the following program. #include<iostream.h> void main() { int i = 0; i = i + 1; cout « i « " "; /*comment *//i = i + 1; cout << i; }
Can we provide one default constructor for our class?
What is the difference between realloc() and free() in C++?
If class D is derived from a base class B
CDPATH shell variable is in(c-shell)
When must you use a constructor initializer list?
What is an algorithm (in terms of the STL/C++ standard library)?
How many times will this loop execute? Explain your answer.
Explain about Searching and sorting algorithms with complexities
What are the advantages and disadvantages of B-star trees over Binary trees?
What are the costs and benefits of using exceptions?