We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi: I use c8051f410,
Program Size: data=114.1 xdata=100 code=4633
I had to use the long multiple in program and find it can not be excecute properly.
The code is as below, Is this stack overflow? How can I fix it?
long x=0; char cHour=0xff; char cMin=0xff; char cSec=0xff; long gulbegintime=0; x=(ulong)3600*(ulong)cHour; printf("1 x =%lu \n",x); gulbegintime=60*cMin; printf("2 gulbegintime =%lu \n",gulbegintime); gulbegintime+=cSec; printf("3 gulbegintime =%lu \n",gulbegintime);
print result:
1 x =4294963696 2 gulbegintime =4294967236 3 gulbegintime =4294967235
YOU SAID ### Good point ###
THANK YOU FOR THE SUPPORT. I LEARN PROGRAMING FROM THE BOOK. IT IS VERY GOOD. ONE DAY I WANT TO WRITE A REAL PROGRAM.
Can't you do your trolling in lower case letters?
YOU SAID ### Can't you do your trolling in lower case letters? ###
I GAVE A GOOD POINT. WHAT HAVE YOU DONE TODAY? NOTHING.
OF COURSE I MEANT I RAISED A GOOD POINT.
WHAT HAVE YOU DONE TODAY
.... is stopped asnnoying evryone with your SHOUTING Erik