I know this question may have been asked before,but my doubt is not still clear. And please don't suggest any modifications in the code,I have tried this code only to check the result of the compiler and here I'm not doing any serious coding.
#include<stdio.h>
int main()
{
int a;
printf("Enter the value of a");
scanf("%d ",&a);
printf("a is %d ",a);
}
Why the second printf() statement is not executing,even after entering an integer? And If I enter any integer/character the second time,then it executes.Why is it so.Why scanf() doesn't ignore the void space?