Question: 1) What is a scope resolution operator? What does it do? Show its syntax. 2) Give a positive and a negative aspect of dynamic arrays.
1) What is a scope resolution operator? What does it do? Show its syntax.
2) Give a positive and a negative aspect of dynamic arrays.
3) What does the following code segment do? while (true) { x = x + 1; }
4) A certain program contains ONLY the following five classes. Which one of them is likely to be used as a super-class to one of the others, and why? Note that there is only one correct answer for this particular example: Plant, Reptile, Bird, Fish, and Tree. Identify which of these would be the superclass, which would be its child class, and briefly explain.
5) What does the following code do? What does it return if the two strings are the same? strcmp(str1,str2);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
