lambdabot

Untitled

May 10th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.   char m[12][4];
  5.  
  6.   char (*ptr1)[4];
  7.   char *ptr2;
  8.  
  9.   for (ptr1 = m; ptr1 < m + sizeof(m) / sizeof(m[0]); ptr1++) {
  10.     for (ptr2 = *ptr1; ptr2 < *ptr1 + sizeof(*ptr1) / sizeof((*ptr1)[0]); ptr2++) {
  11.       *ptr2 = 'x';
  12.       printf("%c", *ptr2);
  13.     }
  14.     printf("\n");
  15.   }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment