41.
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
#define MAX 10
int main()
{
    int num;
    num = ++MAX;
    cout << num;
    return 0;
}

42.
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
void square (int *x)
{
    *x = (*x + 1) * (*x);
}
int main ( )
{
	int num = 10;
        square(&num);
        cout << num; 
        return 0;
    }
a) 100

44.
What is the meaning of the following declaration?
int(*ptr[5])();

47.
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
void fun(int x, int y)
{
    x = 20;
    y = 10;
}
int main()
{
    int x = 10;
    fun(x, x);
    cout << x;
    return 0;
}

Read More Section(Functions and Procedures in C plus plus)

Each Section contains maximum 100 MCQs question on Functions and Procedures in C plus plus. To get more questions visit other sections.