how to make sure scanf receives the correct variable type c code example Example: how to scan in c scanf("%d",&int);