Question 16
· unclassifiedP · Verified PYQ
Problem
what would be the output of the below code? #include <stdio.h> int main () { int n, num = 8421; n = num; while (num >= 10) { num /= 10; } printf (“%d”, num);
return 0; } Answer: 8
what would be the output of the below code? #include <stdio.h> int main () { int n, num = 8421; n = num; while (num >= 10) { num /= 10; } printf (“%d”, num);
return 0; } Answer: 8
Local Storage Only
Your progress is saved securely in your browser. No account needed. (If you clear data or switch devices, progress resets).