+ 2
Chars
#include <iostream> using namespace std; int main() { char c; c='tuz'; cout<<c; return 0; } Output is z Why it stores the last character Its running completely
1 ответ
+ 2
Siddharth Jain
A char data type is meant to store a SINGLE character.
so ::
char c= 'tuz' is same as
char c= 't', c='u', c= 'z'.
c = 'z' is the last expression evaluated, so Char c ='z'