Consider the following correct segment of a correct C program:
p = 2;
while (p < 2000) {
p = 2 * p;
}
What is the value of p after this while loop completes its execution?
a) 1023
b) 1024
c) 2047
d) 2048
d) 2048
Computer Science & Information Technology
You might also like to view...
Suppose the unary ! operator is an overloaded member function of class String. For a String object s, which function call is generated by the compiler when it finds the expression !s?
a. s.operator!() b. s.operator!( default_value1, default_value2,…) c. operator!( s ) d. A compiler error results because no arguments are given.
Computer Science & Information Technology
A programmer must do the following before using an array:
a. declare then reference the array. b. create then declare the array. c. create then reference the array. d. declare then create the array.
Computer Science & Information Technology