Files
CSCI-1200/labs/04_memory_debugging/grains.cpp
2023-09-19 21:31:07 -04: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];