greetings
just started with C/C++. Im not quite comfortable porting from java to c/c++. Pointers are quite hard at start. So pls help me with this problem
I want to copy the exact data of a certain pointer to an array of struct. Not just point a pointer from another. can this be done???
example(not a struct just to prove some point.)
char* a="dashdkasdhk";
char* b;
b=a;
this would say that "b" is pointing to the address of "a".
so how can i assign "b" with the values of "a" but "b" have its own memory alocation of its own. no just pointing to "a"