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 the purpose of a constructor? Destructor?
Write a C++ Program to Find Sum and Average of n numbers using for loop.
Difference between Call by pointer and by reference.
Describe the different styles of function prototypes in C++.
What does it mean to declare a member function as static in C++?
Question on Copy constructor.
Explain the difference between method overriding and method overloading in C++?
How many times will this loop execute? Explain your answer.
What is meant by exit controlled loop?
What does malloc return in C and C++?
What is a constructor initializer list?
Explain the difference between C and C++.