GATEverse Practice, past papers & mock tests
GATE 2019
Programming & Data StructuresProgrammingeasyNAT2 marks
Consider the following C program:
c
#include <stdio.h>
int main() {
    float sum = 0.0, j = 1.0, i = 2.0;
    while (i / j > 0.0625) {
        j = j + j;
        printf("%f\n", sum);
    }
    return 0;
}
The number of times variable sum will be printed when the program is executed is _______
Save your progress

Related Programming & Data Structures PYQs