Ok this is the code.Code:#include <iostream.h> int main() { int i=0, j=0; char s1[40]="string 1", s2[35]="string 2", st[75]; while(s1[i]) { st[i]=s1[i]; ++i; } while ((*(st+i)=s2[j]) !=0) { ++i; ++j; } cout <<st; }
In this peace of code i dont understand what the '*' is doing and i dont understand why is it important, but when i remove it the compiler returns an error.Code:while ((*(st+i)=s2[j]) !=0) { ++i; ++j; }
Can someone tell me pls what is that '*' for??
Tks