[ create a new paste ] login | about

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

godneil - C, pasted on Sep 14:
1
2
3
4
5
6
7
8
9
10
11
//using Bitmask to change data
#include <stdio.h>
int main() 
{
	char my_data = 6;
	my_data = 6 | 0b00110000;
	
	printf("The num %c", my_data);
	
	return 0;
}


Output:
1
Line 15: error: invalid suffix "b00110000" on integer constant


Create a new paste based on this one


Comments: