Cloudy

Given the following statements:

int num;

int *numPtr;

write C++ statements that use the variable numPtr to increment the value of the variable num. (2, 3)

What is the output of the following C++ code? (2, 3)

string str1 = “sunny”;

string str2 = “cloudy”;

string *s1;

cout < str1=””>< “=”” “=””>< str2=””><>

s1 = &str1;

str1 = str2;

str2 = *s1;

cout < str1=””>< “=”” “=””>< str2=””><>

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X