Subscribe TechModgy to learn about new technologies!

The output of the following code is:
void main() 
int a = 0;
while (a<=50) for(;;) if(++a % 50==0) break;
printf("a = %d", a);

A. a = 100

B. a = 50

C. compilation error

D. runtime error

Please do not use chat terms. Example: avoid using "grt" instead of "great".