Hello, I am using MCC18 with 18F452 MCU. I have this very simple pointer program but it doesn't seem to work correctly. For some reason, the variable "num" doesn't get incremented at all. Did I do something wrong? void increment(unsigned int *numptr) { numptr++; } void main (void) { unsigned int num = 1; increment(&num); } --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads