#include <iostream>
#include <cstdint>
#include <cstdio>
using namespace std;
int main()
{
uint16_t ii;
std::cin >> ii;
printf("%d\n", ii);
}
When I give input 5
the output is also 5
. But when I change the type of ii
to uint8_t
, I do not get 5
but 53
which seems to be the ASCII value of 5
. Is this expected?