Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main() {
  5.   char * all_words[10];
  6.   char * word = (char*)malloc(sizeof(char));
  7.  
  8.   word = "Hello\0";
  9.  
  10.   int i = 0;
  11.   while ((*word+i) != '\0') {
  12.     printf("%c", *(word+i));
  13.     i++;
  14.   }
  15.   printf("\n");
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement