[ create a new paste ] login | about

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

C, pasted on Sep 23:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <conio.h>

main()
{
	struct bit_type{
		char d:1
	} bit;
	
	bit.d = 1;
	
	printf("%d", sizeof(bit));
	getch();
	
}


Output:
1
2
3
Line 18: error: conio.h: No such file or directory
In function 'main':
Line 7: warning: no semicolon at end of struct or union


Create a new paste based on this one


Comments: