void swap(char **str_1,char **str_2){
char *temp = *str_1;
*str_1 = *str_2;
*str_2 = temp;
}
int main(){
char str1[20] = "india";
char str2[20] = "is great";
swap(&str1,&str2);
printf("%s",str1);
printf("%s",str2);
}
if we replace str1[20] and str2[20] by *str1 and *str2. then string is swapped.but not in this case why?? please explain..