vendredi 19 août 2016

what will happen if we use *char[*char-'0'] [duplicate]

This question already has an answer here:

I came across a C code snippet which had a statement s[*num - '0'] where both s and num are character pointers.

I would like to know what will actually happen if we use *char-'0' as the index of a pointer.

Aucun commentaire:

Enregistrer un commentaire