Sail E0 Webinar
Question


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
Options:
A .  6549
B .  4965
C .  6646
D .  compile time error
Answer: Option A

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 ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers