Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!pyrnj!mirror!root From: root@mirror.TMC.COM Newsgroups: comp.lang.c Subject: Re: Pointer incrementation and assignme Message-ID: <236100012@mirror> Date: 26 May 89 12:48:00 GMT References: <2015@csuna.csun.edu> Lines: 15 Nf-ID: #R:csuna.csun.edu:-201500:mirror:236100012:004:513 Nf-From: mirror.TMC.COM!root May 26 08:48:00 1989 The compiler knows the size of the data that you are working with. a+=1 and a = a+1 will still increment the pointer by 2. The same way the compiler knows how to increment ints, floats, longs, and doubles, it knows how to correctly increment any pointer, no matter what the syntax that you use. In reality the command a++ is just shorthand for a+=1 and a = a+1. It was origionally made for lines like: whatchamacallit = whatchamacallit + 1; Carnigan and Ritchie were programmers who didn't like to type.