91. What is the mandatory part to present in function pointers?
92. Where does the return statement returns the execution of the program?
93. What is the other name of the macro?
94. What will be the output of the following C++ code?
#include <iostream>
#include <stdarg.h>
using namespace std;
int flue(char c,...);
int main()
{
int x, y;
x = flue('A', 1, 2, 3);
y = flue('1', 1.0,1, '1', 1.0f, 1l);
cout << x << y;
return 0;
}
int flue(char c,...)
{
return c;
}
#include <iostream>
#include <stdarg.h>
using namespace std;
int flue(char c,...);
int main()
{
int x, y;
x = flue('A', 1, 2, 3);
y = flue('1', 1.0,1, '1', 1.0f, 1l);
cout << x << y;
return 0;
}
int flue(char c,...)
{
return c;
}
95. What is the general syntax for accessing the namespace variable?
96. What will you use if you are not intended to get a return value?
97. From which function the execution of a C++ program starts?
98. Which value will it take when both user and default values are given?
99. which of the following is used to terminate the function declaration?
100. What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int Add(int X, int Y, int Z)
{
return X + Y;
}
double Add(double X, double Y, double Z)
{
return X + Y;
}
int main()
{
cout << Add(5, 6);
cout << Add(5.5, 6.6);
return 0;
}
#include <iostream>
using namespace std;
int Add(int X, int Y, int Z)
{
return X + Y;
}
double Add(double X, double Y, double Z)
{
return X + Y;
}
int main()
{
cout << Add(5, 6);
cout << Add(5.5, 6.6);
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.