Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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 ajoutée par siva raju
Date de publication: 2016/02/28
Abdulmalik Mohammed
par 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

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?