Q
I have a string A[100]
I'd like to print A[offset-100]
except for for(i=offset-1;i<100;i++)
printf("%c",A);
or introduce a new variable like B[100]
memcpy(B,&A[offset-1],100-offset)
printf("%s",B);
What's the easiest way to do it?
Thanks a lot!
I'd like to print A[offset-100]
except for for(i=offset-1;i<100;i++)
printf("%c",A);
or introduce a new variable like B[100]
memcpy(B,&A[offset-1],100-offset)
printf("%s",B);
What's the easiest way to do it?
Thanks a lot!