What are mandatory parts in the function declaration?
An array element is accessed using
Which of the following is the correct syntax of including a user defined header files in C++?
What will be the output of the following C++ code?
#include
using namespace std;
int max(int a, int b )
{
return ( a > b ? a : b );
}
int main()
{
int i = 5;
int j = 7;
cout << max(i, j );
return 0;
}
What will be the output of the following C++ code?
#include
using namespace std;
int add(int a, int b);
int main()
{
int i = 5, j = 6;
cout << add(i, j) << endl;
return 0;
}
int add(int a, int b )
{
int sum = a + b;
a = 7;
return a + b;
}
What is the default return type of a function ?
Which is more effective while calling the functions?
What is the index number of the last element of an array with 9 elements?
What are the formal parameters in C++?
Which is used to create a pure virtual function ?
The destination statement for the goto label is identified by what label?
Which of the following cannot be legitimately passed to a function
Which of the following is a valid class declaration?
The break statement causes an exit from
What is an inline function?
Overloaded functions are ________________
Declaration of a pointer reserves memory space
Which symbol is used to declare the preprocessor directives?
Which of the following permits function overloading on c++?
How many minimum number of functions should be present in a C++ program for its execution?
Which of the following is not the characteristics of a constructor
Which of the following is illegal?
How many types of polymorphism are there in C++?
An exception is caused by