struct cde { char c; int d; }; struct xyz { static char x; int y; static int z; }; char xyz::x = 'Y'; int xyz::z = 47; main() { cde C; xyz X; C.c = 'D'; C.d = 4; X.y = 7; printf("%c %d\n",C.c, C.d); printf("%c %d %f\n",X.x, X.y, X.z); }
Quote: then adding the base address to the offset.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)