Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #define lim 80
  4.  
  5. int main()
  6. {
  7.         int i, c;
  8.         char s[lim];
  9.  
  10.         /* There is a sequence point after the first operand of ?: */
  11.  
  12.         for(i=0; i<lim-1 ? (c=getchar()) != '\n' ? c != EOF : 0 : 0 ; ++i)
  13.                 s[i] = c;
  14.        
  15.         return s[i] ^= s[i]; /* null terminate and return. */
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement