datatype *identifier
long *pnum
datatype* identifier
long* pnum
pointer = &variable
pnum = &num
pointer = NULL
pnum = NULL
*pointer
*pnum = 2
pnum
char *name="John Doe";
cout
char *pstr[] = {"Tom", "Dick", "Harry"};
(sizeof var) / (sizeof var[0])
const char* pstring="ABC";
char* const pstring="ABC";
const char* const pstring="ABC";
double *pdata; double data[5]; pdata = data; // makes pdata point at array's first element.
pdata = &data[0];
pdata += 1; // increments pdata to point to the next array element
pdata
data[2]
*(pdata + 1) = *(pdata + 2)
data[3] = data[4]
data[3]
*(data + 3)
new
pvalue = new double;
if (!(pvalue = new double)) cout << "\nOut of memory\n"; else { // do useful stuff here }
delete
datatype& refname = varname;
refname
varname
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.