View Single Post
  #10   Spotlight this post!  
Unread 15-01-2004, 00:29
Just3D Just3D is offline
Programmer/Electrical Sys
AKA: Justin Layne Nordin
#1460 (Robolution)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Houston, Texas
Posts: 4
Just3D has a little shameless behaviour in the past
Re: Trouble with pwm outputs

You are correct. The & symbol denotes the address of a variable, passing this information to the printf function. Printf requires a pointer, which is why the & is needed.

However, I realized my mistake:

This is the behavior of the standard C printf function, and I believe the default code comes with a new re-written printf function, in which case the & might not be necessary at all. I just got started with this specific compiler, so I'm still getting accustomed to the new conventions. Thanks for the insight.