const char* colors[] = {"Red", "Blue", "Green"};
*ptr = new char[30];
memset(ptr,0,30);
I want to store colors(2-D) to ptr(1-D), something like this =>
ptr = "Red";
ptr+10 = "Blue";
ptr+20 = "Green";
this gives me lvalue required as left operand of assignment
Could someone guide me with this, please?