exc/k&r/02-types-operators-and-exp/02-02.c

14 lines
197 B
C

#include <stdio.h>
#define LIM 100
int main()
{
int c, i;
char s[LIM];
for (i=0; (i < LIM-1) ? ((c=getchar() != '\n') ? c != EOF : 0) : 0; ++i)
s[i] = c;
return 0;
}