Dan Saks, Author at Embedded.com - Page 10 of 11

Dan Saks

Dan Saks is president of Saks & Associates, a C/C++ training and consulting company. For more information about Dan Saks, visit his website at www.dansaks.com. Dan also welcomes your feedback: e-mail him at dan@dansaks.com.

Symbolic Constants

There's more than one way to define symbolic constants in C and C++. It helps to know what all of your choices are. One of…

Passing By Reference-to-const

The rules for initializing references make passing by reference-to-const an efficient and attractive alternative to passing by value. As in C, function calls in C++…

Reference Initializations

The rules for initializing references resemble the rules for initializing pointers. But they do differ. And you should know how. I began this year's columns…

Non-modifiable Lvalues

Lvalues actually come in a variety of flavors. If you really want to understand how compilers evaluate expressions, you'd better develop a taste. An expression…

Lvalues and Rvalues

C and C++ enforce subtle differences on the expressions to the left and right of the assignment operator If you've been programming in either C…

References vs. Pointers

Knowing how references really differ from pointers should help you decide when to use references and when to stick with pointers. In C++, references provide…

References and const

Just as you can use the const qualifier in pointer declarations, you can also use it in reference declarations-with one notable exception. Last month, I…

An Introduction to References

In C++, references and pointers have overlapping functionality.Here are some insights to help you decide which to use for aparticular task. Both C and C++…