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-;
}
}
What are pass by value and pass by reference?what is the disadvantage of pass by value?
Explain the difference between method overriding and method overloading in C++?
How can you force the compiler to not generate them?
Without using third variable write a code to swap two numbers.
In C++ what do you mean by Inheritance?
Tell me about virtual function
What is the difference between realloc() and free() in C++?
How to convert integer to string in C++
What is data abstraction? How is it implemented in C++?
explain the term 'resource acquisition is initialization'?
What is Coupling?
What is placement new?