-
What is the output of this program?
#include
#include
using namespace std;
int funcion(char ch,...);
int main()
{
int p, q;
p = funcion('B', 2, 3, 4);
q = funcion('3', 2.0, 2, '3', 2.0f, 10);
cout << p<<" " << q;
return 0;
}
int funcion(char ch,...)
{
return ch;
}
-
- 51 66
- 66 51
- Compilation Error
- Runtime Error
- None of these
Correct Option: B
In this program, we are returning the ascii value of the character and printing it.