Question
1.
#include
2.
#include
3.
using namespace std;
4.
int flue(char c,...);
5.
int main()
6.
{
7.
int x, y;
8.
x = flue('A', 1, 2, 3);
9.
y = flue('1', 1.0,1, '1', 1.0f, 1l);
10.
cout
What is the output of this program?
1.
#include
2.
#include
3.
using namespace std;
4.
int flue(char c,...);
5.
int main()
6.
{
7.
int x, y;
8.
x = flue('A', 1, 2, 3);
9.
y = flue('1', 1.0,1, '1', 1.0f, 1l);
10.
cout
Answer: Option A
Was this answer helpful ?
In this program, we are returning the ascii value of the character and printing it.
Output:
$ g++ rka4.cpp
$ a.out
6549
Was this answer helpful ?
Submit Solution