Which of the following data types has the smallest size in C++? 

  • int 
  • float 
  • char 
  • double
In C++, the char data type typically takes up 1 byte of memory, which is smaller than int, float, or double. The exact size of int can vary depending on the platform, but char is defined by the standard to always be at least 1 byte, making it the smallest of the given options.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *