c program of  Suppression character * in  scanf


 Suppression character * in  scanf

if we want skip any input we specify * between % sign and the conversion specification.

scanf(“%c  %*d  %d”,&a,&b);  // * uing for skip the value


Output

Input data is :  25  30  35

Here 25 to a 30 is skip  and 35  to b

so,

a=25

b=35

(Visited 160 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image