Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/14/05 21:27
Read: times


 
#94965 - printf - some homework for you...
Responding to: ???'s previous message
Aziz Sedaghat said:
main()
{
  unsigned char i;

  :

  for(i=0;i<=255;i++) 
  { 
    printf("%d",i); 
    P2=i; 
  } 
}


Go back to the Keil Manual and read the description of the printf Format Specifiers very carefully - then look back at your code and see why "%d" is incorrect on two counts...

List of 9 messages in thread
TopicAuthorDate
why cpu hangs ?            01/01/70 00:00      
   I am not surprised            01/01/70 00:00      
      possibly incorrect            01/01/70 00:00      
         I did think that            01/01/70 00:00      
   also            01/01/70 00:00      
   Welcome            01/01/70 00:00      
   Aziz, what do you do?            01/01/70 00:00      
      SBUF or Printf & ...            01/01/70 00:00      
   printf - some homework for you...            01/01/70 00:00      

Back to Subject List