If i have a char pointer, say char *ptr, that holds the address of a single ascii character, and want to use the modulo operator on that address, how do i do so? Whenever I try and do this with a basic operation such as int modulo = ptr % 16, i get the error "invalid operands to binary %" I have a weak grasp on binary arithmetic, so I know I need to keep developing this skill, but if someone could tell me what concept I'm missing here that would be a great help, thanks.
Edit: Sorry I wasn't as clear with what I was trying to accomplish, but basically I just need to display a block of memory with 16 slots. Its a program where a ascii character is found in an array, which i've already done, and then the block of memory that this ascii character is stored in is then displayed. When I run it now, it displays the found ascii character and the 15 characters that come after the character found and their memory locations. Instead of doing this, if the found ascii character is in the middle of block of memory, I need it to display what is stored around it, not only what comes after it. So like if the found character is in the 23 slot of the array, the program will then display the character and memory locations of what is in slots 16-31 of an array.
%operation on an address ?(*ptr)%16?