Is there any way I can get c[4] or c[3] by using data?Code:char c[6]={"hello"}; void* data; data=c;
I tried cout<< (char*)data[4]; but it doesnt work.
Is there any way I can get c[4] or c[3] by using data?Code:char c[6]={"hello"}; void* data; data=c;
I tried cout<< (char*)data[4]; but it doesnt work.