![Sscanf example #include int main () { char sentence []="Rudolph is 12 years old"; char str [20]; int i; sscanf (sentence,"%s %*s %d",str,&i); printf ("%s. - ppt download Sscanf example #include int main () { char sentence []="Rudolph is 12 years old"; char str [20]; int i; sscanf (sentence,"%s %*s %d",str,&i); printf ("%s. - ppt download](https://images.slideplayer.com/17/5364752/slides/slide_2.jpg)
Sscanf example #include int main () { char sentence []="Rudolph is 12 years old"; char str [20]; int i; sscanf (sentence,"%s %*s %d",str,&i); printf ("%s. - ppt download
Why scanf ('%d', &a) if a is an integer and scanf ('%c', a) if a is a character? Why is address of operator not put in case of taking character/ string as input? -
![The scanf Function The scanf function reads input from the standard input device into one or more variables Example: scanf(“%lf”, &miles); Reads a real. - ppt download The scanf Function The scanf function reads input from the standard input device into one or more variables Example: scanf(“%lf”, &miles); Reads a real. - ppt download](https://slideplayer.com/slide/5060929/16/images/4/The+scanf+Function+Example%3A+scanf%28+%25c%25c%25c+%2C%26x%2C%26y%2C%26z%29%3B.jpg)