Same or different airlines ? Same or different alliances ? Airport layout ?
If you can check bags and get your BPs for A-B-C and C-B-A then probably no worries. This likely to be possible if you're flying within an alliance, subject to random computer system vagaries.
And, you'll always have to pass through 'security', but I think you meant customs and immigration ?
hth