#include <stdio.h>
void main() {
char a[15] = "!Hello world!";
a[0] = '';
printf_s("%s",a);
getch();
}
I want to remove only one ! which is in the beginning but using a[0]='';
gives error and a[0]=0;
works as '\0'
. The output I want is Hello world!
. How can I achieve this?