What will be the printed value of digit of the following program?
#include <stdio.h>
main()
{
int digit=0;
while (digit>=9)
digit++;
printf("%d", digit);
}
Answers
Answered by
0
Explanation:
printf function returns the integral value and that value is the number of characters printed by it. Also, internal statement is executed first. So, the internal printf statement will run first, and return 5 and external printf will print 5.
.#include <stdio.h>
main()
{
int digit=0;
while (digit>=9)
digit++;
printf("%d", digit);
}
Mark me as a brainlist thankyou
Similar questions