Hi guys,
Whenever I pass an adress from interger variable to a pointer (a function argument) I need to put '&' command, but when I pass an address from char variable to a pointer(function argument too) I don't need to put '&'. Why does it happen?
Code:char text[3] = "hi "; int v = 0; void func1(char *str); void func2(int *x); void main() { func1(text); func2(&v); } void func1(char *str) {while(*str==' ') {*str='!';}} void func2(int *x) {*x = 1;}