Simple doubt related to strings in C

Posted by piemesons on Stack Overflow See other posts from Stack Overflow or by piemesons
Published on 2010-05-21T18:17:17Z Indexed on 2010/05/21 18:20 UTC
Read the original article Hit count: 187

Filed under:
// The first example:
char text[] = "henri";
char *p;
p = text;
*(p + 1) = 'E'; // Output = hEnri
// Now If we want to remove the "e" ie hnri, we would go for?????
     *(p + 1)=????? 

Please dont say start copying the array. I am looking for the best solution

© Stack Overflow or respective owner

Related posts about c