Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int sscanf(char *s, const char *format, ...);
- int scanf(const char *format, ...);
- int idade, ano;
- char *s = (char *) malloc(100 * sizeof(char));
- s = "10 50";
- sscanf(s, "%d%d", &idade, &ano);
- printf("-> %sn", s);
- printf("-> idade: %d, ano: %d", idade, ano);
- int sprintf(char *s, const char *format, ...);
- int printf(const char *format, ...);
- int idade, ano;
- char *s = (char *) malloc(100 * sizeof(char));
- char *t = (char *) malloc(100 * sizeof(char));
- s = "10 50";
- sscanf(s, "%d%d", &idade, &ano);
- printf("-> %sn", s);
- sprintf(t, "-> i: %d, a: %d", idade, ano);
- printf("-> t: %sn", t);
Add Comment
Please, Sign In to add comment