#include<stdio.h>
int main()
{
char s[]="123 45.32 4";
int x;
double y;
int c;
puts(s);
sscanf(s,"%d%lf%d",&x,&y,&c);
printf("%d\n%lf\n%d\n",x,y,c);
}
Have a Read!
Hi Everyone.
The idea for this page is to provide new c users simple c tutorials to learn how to develop the logic and more importantly correct way to write syntax.
ENJOY !!!
Sunday, February 6, 2011
How to use sscanf
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment