#include <stdio.h>
int main()
{
int c = 5, no = 10;
do {
no /= c;
} while(c--);
printf ("%d\n", no);
return 0;
}
Please help me trace the while loop.
I think it stops at one stage, but that is not the case, It executes even when c=0,hence gives runtime error.
Please explain