#include /** * Setting a value into a pointer * Gagg, I hate the use pointer syntax in C * * @author gtowell * Created March 2021 * **/ int main(void) { int giv = 5; int *gip = &giv; printf("TM1%5d%12d%12d\n", giv, &giv, gip); *gip = 7; // set value into the pointer printf("TM2%5d%12d%12d%5d\n", giv, &giv, gip, *gip); *(&giv) = 9; // set value into the memory address, parens are required printf("TM2%5d%12d%12d%5d\n", giv, &giv, gip, *gip); }