A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
stdle-107.cpp
1#include<iostream>
2intmain(){
3charc='A';
4c=c+1;
5std::cout<<c<<"\n";
6return0;
7}
Conversions
Answer & explanation
Console output
B
Why
Adding 1 to a char promotes it to int (65 + 1 = 66), and assigning back to char stores the code 66. Code 66 is the letter B in ASCII, so the char streams as B. This is the classic char/int round trip through arithmetic.