Hi,
May I ask a newbie question again? Why does the int a need to have a prefix of '&'? In java, I use readline() to read the inputstream only.
Thanks for help.
Code:#include <stdio.h> void main() { int a, b; printf("Enter the number to be reversed.\n"); scanf("%d", &a); do { b = a % 10; printf("%d", b); a = a / 10; }while(a != 0); printf("\n"); }



LinkBack URL
About LinkBacks


