I have a private data member say (char *string1).
I wrote the following code.
for (char* temp=string1; *temp!='/0'; ++temp)
When I try to run this code I get an access violation error!
due to this *temp!='/0' part
so how am I suppose to go through a cstring??