Using C Programming for the following: Run the program below with the following values: #include int main(void)
Fantastic news! We've Found the answer you've been seeking!
Question:
Using C Programming for the following:
Run the program below with the following values:
#include
int main(void)
{
int x, y, p, q;
printf("Enter x and y:");
scanf("%4d%5d", &x, &y);
printf("x=%d,y=%d", x, y);
printf("\nEnter p and q:");
scanf("%d%d", &p, &q);
printf("p=%d,q=%d", p, q);
return 0;
}
Enter the following values for x, y, p and q:
Enter x and y: 12345 6789
Enter p and q: 54321 9876
Analyze and explain the output.
but my output result is as follows:
Why is it so?
Related Book For
Computer Systems A Programmers Perspective
ISBN: 9781292101767
3rd Global Edition
Authors: Randal E. Bryant, David R. O'Hallaron
Posted Date: