字元

 avatar
user_3763047219
c_cpp
3 years ago
418 B
7
Indexable
int main()
{
	char c = '5';
	int d = 78;
	printf("%c\t%d\t%d\n", c, c, sizeof(c));
	printf("%c\t%d\t%d\n", 78, 78, sizeof(d));

	if ('B' < 'F') {
		printf("OK\n");
	}
	if ('B' < 'b') {
		printf("OK\n");
	}

	char e = 128;
	printf("%d\n", e);

	//char swABC;
	//switch (swABC) {
	//case A:
	//	;
	//case B;
	//}
	//AB要有順序關係
	char f;
	f = toupper('e');
	printf("%c", f);

	


}
Editor is loading...