I'm not able to understand why the below code is not working properly.
2 void f(char *s)
6 void main()
8 char a = "Hello";
In the function f, i'm trying to assig a value to the char pointer passed from main(). I don't understand why this value is not getting reflected in main(). But if i replace the line
the value is getting reflected in main(). Any help would be appreciated.
Thanks & regards,