if i have a scanf for example:

scanf("%d",&x);

this is set to scan in a int data type to varabila x.

say the user inputs 2.5, i know the 2.5 will be trunkated to 2 but how useing a if statememt coukd i check if an int has been inputed.

hope the question makes sense...

thanks in advance....