Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main(void) {
- // your code goes here
- char* ptr1=NULL;
- char* ptr2=0;
- printf("Just completed the initializations");
- strcpy(ptr1, " c");
- printf("Copied to ptr1");
- strcpy(ptr2, "questions");
- printf("Copied to ptr2");
- printf("n%s %s", ptr1, ptr2);
- return 0;
- }
Add Comment
Please, Sign In to add comment