August 2012
Intermediate to advanced
976 pages
30h 17m
English
As we’ve seen, a variable definition consists of a base type and a list of declarators. Each declarator can relate its variable to the base type differently from the other declarators in the same definition. Thus, a single definition might define variables of different types:
// i is an int; p is a pointer to int; r is a reference to intint i = 1024, *p = &i, &r = i;
Warning
Many programmers are confused by the interaction between the base type and the type modification that may be part of a declarator. ...
Read now
Unlock full access