adding the programs
This commit is contained in:
10
labs/04_memory_debugging/veggies.cpp
Normal file
10
labs/04_memory_debugging/veggies.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
char*** carrot;
|
||||
char** broccoli;
|
||||
char* tomato;
|
||||
char radish = 'q';
|
||||
tomato = new char;
|
||||
*tomato = 'z';
|
||||
broccoli = new char*;
|
||||
*broccoli = tomato;
|
||||
carrot = new char**;
|
||||
*carrot = broccoli;
|
||||
Reference in New Issue
Block a user