Could any reader kindly (very kindly( tell me why function modifyNm() is not modifying the name from Bob to John. When I get the output for main() it still oututs Bob instead of John. I know we can modify and reinitialize int type arrays by calling a function. Is there something special about strings that I am not aware of - most probably there is. Please help, thanks a million.
void modifyNm(char *name)
{
name = "John";
}
int main()
{
clrscr();
char nm[10]; = "Bob";
modifyNm(nm);
cout << nm;
getch();
return 0;
}