Question

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

Answer

This answer is hidden. It contains 3 characters.