Files
CSCI-1200/labs/memory_debugging/grains.cpp
2025-01-07 17:16:10 -05:00

11 lines
176 B
C++

float* oat[3];
oat[1] = new float;
*oat[1] = 3.14;
oat[2] = new float;
*oat[2] = 6.02;
float rice;
float* wheat;
wheat = oat[2];
float** barley = new float*;
*barley = oat[1];