#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void main()
{ char* a[10]={"asd","QWE","ghj"};
printf("%s %c",a[2],a[2][2]); // prints properly... "ghj j"
puts(a[1]); //prints properly..."QWE"
a[1][1]='t'; //gives segmentation fault....
}
what is the mistake in the code...??/..pls help..have an exam in 6 hrs...thank you....