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.
Loading...
Related Quiz
- When dealing with large datasets, what is the advantage of using 'long long int' over 'int'?
- You're debugging a segmentation fault in a program and find that a pointer is being accessed after it has been freed. What is this type of pointer error called?
- What is the role of the 'continue' statement in a loop?
- In C, what is the effect of using pointers as function parameters with regards to pass by value and pass by reference?
- The ________ statement in C is used to execute a block of code only when a specific condition is true.