Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

#define or typedef

Status
Not open for further replies.

Lorey

Programmer
Feb 16, 2003
88
SG
whats the best use of typedef and define
 
For situations where either will work, you'd probably want to always use typedef. #defines are dangerous since they do a straight text replacement without paying attention to language rules and stuff like that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top