2. Assume we have a class Unicorn with a zero-parameter constructor, and assume the following is in main). For each of the fo 2. Assume we have a class Unicorn with a zero-parameter constructor, and assume the following is in main). For each of the following lines of code (besides deletes), explain where the data is stored in virtual memory: Unicorn d1 Unicorn(); Unicorn* d2 new Unicorn (); char c1= new char(‘a’) char* c2 =&c1 : delete c1; c1 new char 5]; char c3 c1+2 c2 &c3 static char e ‘e’ static char f char& c4 (c1+1); char&& c5 ‘c’;



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *