Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Register Variables

Name: Anonymous 2011-09-25 10:47

How exactly do register variables work in C? When should they be used? K&R touches upon them briefly but moves right along. Is there any source in which I can read about them in depth?

Name: !!kCq+A64Losi56ze 2011-09-25 22:17

>>28

Objects are variables?/ memory locations?

No, again, in C, a variable is a named object. However, an object isn't a variable.

How do these not get lost?

Objects have scope, duration, and linkage. The guy that started NetBSD told me once upon a time to think of these three things of being the property of an object.  So if the object has file duration, the life of the object will persist after the function returns.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List