how to set a pointer to an offset in c
char *ptr0 = "Hello Goodbye";
char *ptr1 = ptr0+6; // offset 6 bytes from ptr0
printf("ptr0: %s\n", ptr0); // expected output ptr0: Hello Goodbye
printf("ptr1: %s", ptr1); // expected output: ptr1: Goodbye
how to set a pointer to an offset in c
char *ptr0 = "Hello Goodbye";
char *ptr1 = ptr0+6; // offset 6 bytes from ptr0
printf("ptr0: %s\n", ptr0); // expected output ptr0: Hello Goodbye
printf("ptr1: %s", ptr1); // expected output: ptr1: Goodbye
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us