#include <stdio.h>
#include <stdlib.h>
int main()
{
char s[40]="Who are you tell me that I can not code?";
char c=s[8];
char st[2];
st[0]=s[0],st[1]=s[1];
printf("%s \n",st);
return 0;
}
Why is it printing my original string 's' also when I'm printing st?
Output:-
WhWho are you tell me that I can not code?►
Process returned 0 (0x0) execution time : 0.048 s
Press any key to continue.