summaryrefslogtreecommitdiff
path: root/c,cc/scanf.c
blob: 21dda28228498d72b47ac3f06b444a19b1cc1ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>


int main (void)
{
  char str[80];
  int res;
 
  res = scanf(" %s", str);
  printf("%d %s\n", res , str);
  res = scanf("%s ", str);
  printf("%d %s", res, str);
  res = scanf(" %s", str);
  printf("%d %s\n", res, str);
  return 0;
}