You are taking quiz cppquiz.org/q/2r0zy. After 0 of 10 questions, you have 0.00 points.
Question #259 Difficulty:
According to the C++17 standard, what is the output of this program?
#include <iostream>
void f(unsigned int) { std::cout << "u"; }
void f(int) { std::cout << "i"; }
void f(char) { std::cout << "c"; }
int main() {
char x = 1;
char y = 2;
f(x + y);
}
Hint:
int
is at least as big as char
. char
can be either signed or unsigned.
Mode : Quiz
If you want to quit the current quiz and go back to training mode, click here.