Replaceable and movable image

Hello,

I’m using SDL2 my first time and I have a question:
How to make an image movable and replaceable?

I want to make a Drag and Drop mini game and I need to know if I can change the coordinates of an image.
It’s also important for me to change an image object later in the game.

When you are drawing the image you can define the position where to draw to (if you are using SDL_RenderCopy() the position is part of the dstrect parameter).

If you later want to display a different image just change the texture parameter to point to another image.