Thread: printf
View Single Post
  #1   Spotlight this post!  
Unread 16-02-2007, 22:22
steve d steve d is offline
Registered User
FRC #1277
 
Join Date: Jan 2007
Location: Groton, ma
Posts: 38
steve d is an unknown quantity at this point
Re: printf

"you type in printf("Hello World); and that should do it.

That won't do it, you forgot closing quotes.
printf("this gets printed: first number = %d, second number here= %d\r",first_number, second_number);

When it sees the %, it prints the first_number, then the words agian till it sees the next %,.. The %d is a format descriptor, there is %s for strings,... google on printf format.