Brumley
Thursday, 15 August 2013
Exceeding unsigned boundary
Exceeding unsigned boundary
#include <stdio.h>
int main ()
{
unsigned char a=250,b=20, c;
c=a+b;
printf ("%d\n",c);
return 0;
}
What can I do for it to show 270? Besides declaring c as int.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment