adding the programs
This commit is contained in:
10
labs/04_memory_debugging/grains.cpp
Normal file
10
labs/04_memory_debugging/grains.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
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];
|
||||
Reference in New Issue
Block a user