Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

I have a char * pointer that happens to point to some ints, and I want to step it over them. Why doesn't ((int *)p)++; work?

this is c question both c and c++ may be?

user-image
Question added by siva raju
Date Posted: 2016/02/28
Abdulmalik Mohammed
by Abdulmalik Mohammed , Oracle Developer , Al-Sudais Logistic Company

becouse you decleare - int - and the data you have is char !

the solution of this is decleare a char type .

 

thanks

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.