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=””><>