char

michelle小星星發表於2018-06-09
#include <iostream>
#include <stdio.h>

using namespace std;

int  main(int argc, char const *argv[])
{
	char a = 0x00;
	printf("a = %d\n", a);

	a = a + 2;
	int c = 3;
	int d = c - a;
	printf("a = %d\n", a);
	printf("c = %d, d = %d\n", c, d);

	char b = 88;
	printf("b = %d, %c\n", b, b);
	return 0;
}

相關文章