can any one give me the dry output for this program?
#include <stdio.h>
main()
{
int a,b,c,d,e;
printf("Enter the Number to Find it's Reverse\n");
scanf("%d",&a);
while(a!=0)
{
b=a%10;
c=a/10;
printf("%d",b);
a=c;
}
getchar();
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming that from dry output you mean explanation of the code, here is my attempt at it.
Suppose user enters
143. So nowa = 143.So value of
bis printed on screenNow
Once again, we return to the
while()So value of
bis printed on screen, which already has3Now
Again, we return to the
while()So value of
bis printed on screen which already has34Now
We return to the
while()Hope it was helpful.
Note
Instead of
You can simply write
Secondly,
What is the purpose of
e?