Can anyone please help me? I need to remove the first character from a char * in C.
char *
For example, char * contents contains a \'\\n\'
char * contents
\'\\n\'
Here is my code. So simple
#include #include int main() { char *str="hello"; printf("%s",&str[1]); return 0; }