LINUX.ORG.RU

почему так?

 


0

1
ivr@nout:/tmp$ gcc -Wall testscan.c 
ivr@nout:/tmp$ 
ivr@nout:/tmp$ ./a.out 
545454
1
ivr@nout:/tmp$ cat testscan.c 
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main()
{
	int n;
	n = scanf("%d", &n);
	printf("%d\n", n);
	return 0;
}
ivr@nout:/tmp$ 
★★★

RETURN VALUE

These functions return the number of input items successfully matched and assigned, which can be fewer than provided for, or even zero in the event of an early matching failure.

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.