Mar 19, 2003 #1 liglin Programmer Jun 21, 2001 5 US In MS VC++ 6.0 under Win 2000 the input 5 produces this output: &d yd = What may be missing? Thanks, Liglin #include <stdio.h> void main() { int yard; printf("Enter next length: " scanf("%d", &yard); printf("\n&d yd = \n", yard); }
In MS VC++ 6.0 under Win 2000 the input 5 produces this output: &d yd = What may be missing? Thanks, Liglin #include <stdio.h> void main() { int yard; printf("Enter next length: " scanf("%d", &yard); printf("\n&d yd = \n", yard); }
Mar 19, 2003 #2 chipperMDW Programmer Mar 24, 2002 1,268 US It prints exactly what you told it to. I suspect you wanted to use something more like the format string "\n%d\n" in printf. Upvote 0 Downvote
It prints exactly what you told it to. I suspect you wanted to use something more like the format string "\n%d\n" in printf.