[ create a new paste ] login | about

Link: http://codepad.org/kXcnL2Ws    [ raw code | output | fork ]

C++, pasted on Apr 24:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>

int main()
{
 int a =  129;
 char ch = a;
 unsigned long u = ch;
 unsigned long b = ch & 0xFF;
 std::cout<<u<<std::endl;
 std::cout<<b<<std::endl;

 return 0;
}


Output:
1
2
4294967169
129


Create a new paste based on this one


Comments: