You will want to do the following:
char *gg = "hello";
printf( "%c\n", gg[3] );
This will print the fourth character (zero based array = 0, 1, 2, 3 so 0=’h’, 1=’e’, etc). Change the 3 to which ever character you want, but make sure to not go past the end of the string. strlen will tell you the length of the string.
2
solved Is there a possibility to print just 1 byte of a string?