Skip to content

Instantly share code, notes, and snippets.

@kelvin-fly
Created October 19, 2012 02:13
Show Gist options
  • Select an option

  • Save kelvin-fly/3915887 to your computer and use it in GitHub Desktop.

Select an option

Save kelvin-fly/3915887 to your computer and use it in GitHub Desktop.
check the compiler of cha is signed or not
#include <stdio.h>
int main()
{
char a=-2;
signed char b=-2;
unsigned char c=-2;
printf("a=%d,b=%d,c=%d\n",a,b,c);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment