jeudi 16 avril 2015

strange (unsigned int i = 'CD';) output

I have following code. i have problem why output is 17220.it maybe different in your compiler. what this statثment Assign to i variable ?



#include <iostream>
using namespace std;

int main()
{
unsigned int i = 'CD';
cout << i;
} // end main


====================


output :


17220


Aucun commentaire:

Enregistrer un commentaire