I just know about the %i format specifier from this link
Difference between format specifiers %i and %d in printf
and I tried to implement it with this program.
#include <stdio.h>
int main(){
long long a,b;
printf("Input: ");
scanf("%i %lld",&b,&a);
printf("Output: %i %lld",b,a);
}
%i worked properly but %lld stores a garbage value in variable a.
This is the output of this program.
Input : 033 033
Output : 27 141733920846
Process returned 0 (0x0) execution time : 4.443 s Press any key to continue.
Can anyone explain, why I am getting the garbage value in variable a?