Mar 19, 2003 #1 liglin Programmer Joined Jun 21, 2001 Messages 5 Location 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 Joined Mar 24, 2002 Messages 1,268 Location 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.