CP DML Q23

0. The following loop
while(printf("%d", printf("az")))
printf("by");

  • Option : D
  • Explanation :
    printf("az") prints az and returns a value 2 (since it printed two characters). So. the condition results in the printing of az2. Since it always returns 2, it is an infinite loop. The output will be az2byaz2by...
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *