OverIQ.com
Run (or Hit F9)
#include <stdio.h> int main() { int a, b; printf("Enter a and b\n"); scanf("%2d%3d", &a, &b); printf("a = %d\n", a); printf("b = %d\n", b); return 0; }
xxxxxxxxxx
#include <stdio.h>
int main()
{
int a, b;
printf("Enter a and b\n");
scanf("%2d%3d", &a, &b);
printf("a = %d\n", a);
printf("b = %d\n", b);
return 0;
}
2,3
2
3