In c++ when using printf() can you tell me all of the different variable types I can use, like %i, %f, etc.
user
Sure, when using printf() in C++, you can use the following variable types:

%c - character
%d - signed decimal integer
%e - scientific notation (mantissa/exponent) using e character
%E - scientific notation (mantissa/exponent) using E character
%f - decimal floating point
%g - uses %e or %f, whichever is shorter
%G - uses %E or %f, whichever is shorter
%i - signed decimal integer
%o - signed octal
%s - string of characters
%u - unsigned decimal integer
%x - unsigned hexadecimal integer
%X - unsigned hexadecimal integer (capital letters)
%p - pointer address
assistant
What are the most common ones that I should make sure I remember?
user