What is the purpose of the 'sizeof' operator in C?

  • It returns the address of a variable.
  • It returns the size of a variable in bytes.
  • It returns the type of a variable.
  • It returns the value of a variable.
The 'sizeof' operator in C is used to determine the size (in bytes) of a variable or a data type. It is often used to allocate memory or work with data structures.
Add your answer
Loading...

Leave a comment

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