I have a few code snippets from a tutorial Im reading my friend gave me to learn c++, and a lot of it is written in shorthand but I cannot fully understand the shorthand code.
return c < Cnt ? &foo[c]:NULL;;
return (cc > 0 && cc <= mCnt)?&foo[cc-1]:NULL;
x = c < mCnt ? c + 1:0;