Guest User

Untitled

a guest
Dec 13th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(void) {
  5. // your code goes here
  6. char* ptr1=NULL;
  7. char* ptr2=0;
  8. printf("Just completed the initializations");
  9.  
  10. strcpy(ptr1, " c");
  11. printf("Copied to ptr1");
  12. strcpy(ptr2, "questions");
  13. printf("Copied to ptr2");
  14.  
  15. printf("n%s %s", ptr1, ptr2);
  16.  
  17. return 0;
  18. }
Add Comment
Please, Sign In to add comment