[cc65] division issue?

From: Stefan Wessels <swessels1email.com>
Date: 2010-12-16 10:00:02
Hi,

The output from the code below is:
a / b = 6

Shouldn't that be 0?

Thanks
Stefan  

#include <stdio.h>
#define b 10000
char a;
int main()
{
	char c;
	a = 100;
	c = a / b;
	printf("a / b = %d", c);
	return 0;
}

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Dec 16 10:00:12 2010

This archive was generated by hypermail 2.1.8 : 2010-12-16 10:00:15 CET