Course Content
C Basics
C Basics
Sizeof Practice
Determining the Byte Size of the int Data Type
main
#include <stdio.h> int main() { printf("Size of int type: %d bytes\n", sizeof(int)); return 0; }
Task
Swipe to show code editor
To find out how many bytes the short
data type occupies, you can employ the sizeof()
function.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 9
Sizeof Practice
Determining the Byte Size of the int Data Type
main
#include <stdio.h> int main() { printf("Size of int type: %d bytes\n", sizeof(int)); return 0; }
Task
Swipe to show code editor
To find out how many bytes the short
data type occupies, you can employ the sizeof()
function.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 9
Switch to desktop for real-world practiceContinue from where you are using one of the options below