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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started