can anyone please tell me why this is not letting me input the char and only the integer.. ?
thanxCode:
struct hm{
int i;
char ch;
}s;
int main()
{
printf("enter and integer :");
scanf("%d",&s.i);
printf("Enter a charater :\n");
scanf("%c",&s.ch);
printf("%d %c\n",s.i ,s.ch);
return 0;
}