Unary operations

Sizeof

sizeof is a unary operator in the programming languages C and C++. It generates the storage size of an expression or a data type, measured in the number of char-sized units. Consequently, the construct sizeof (char) is guaranteed to be 1. The actual number of bits of type char is specified by the preprocessor macro CHAR_BIT, defined in the standard include file limits.h. On most modern computing platforms this is eight bits. The result of sizeof has an unsigned integer type that is usually denoted by size_t. The operator has a single operand, which is either an expression or the cast of a data type, which is a data type enclosed in parentheses. Data types may not only be primitive types, such as integer and floating-point types, but also pointer types, and compound datatypes (unions, structs, and C++ classes). (Wikipedia).

Video thumbnail

Dimensions Chapter 5

Chapter 5 of the Dimensions series. See http://www.dimensions-math.org for more information. Press the 'CC' button for subtitles.

From playlist Dimensions

Video thumbnail

C Programming Tutorial - 31: Sizeof Operator

In this tutorial we'll take a look at the sizeof operator. The sizeof() operator allows us to determine the size of variables (and data types). It has a very simple syntax and is fairly simple to understand. Thanks for watching!

From playlist The Bad Tutorials: C Programming

Video thumbnail

the C language (part 3 of 5)

Introduction to the C programming language. Part of a larger series teaching programming. See http://codeschool.org

From playlist The C language

Video thumbnail

Memory Management in C Programming | Edureka

Watch the sample class recording: http://www.edureka.co/c-programming-datastructure-course?utm_source=youtube&utm_medium=referral&utm_campaign=memory-management To manage memory, there are certain memory management functions. Especially in C programming, there is malloc, realloc and call

From playlist Learn C programming

Video thumbnail

Just How Small is an Atom?

Just how small are atoms? And what's inside them? The answers turn out to be astounding, even for those who think they know. This fast-paced animation uses spectacular metaphors (imagine a blueberry the size of a football stadium!) to give a visceral sense of the building blocks that make

From playlist Even More TED-Ed Originals

Video thumbnail

What is Magnification? Part 1 | Don't Memorise

Let's discuss the size of the images formed by Spherical Mirrors depending on the position of the object! To access all videos related to Reflection and Refraction, enroll in our full course now: https://infinitylearn.com/microcourses?utm_source=youtube&utm_medium=Soical&utm_campaign=D

From playlist Reflection and Refraction Class 10

Video thumbnail

The Biggest Babies In The Animal Kingdom

Blue whale calves are the largest animal babies in the world, clocking in at a whopping 1360kg —almost the same size as a small car. They put on 90kg a day by guzzling their mother’s fatty milk. Meanwhile, bat pups are nowhere near as large, but make up a fourth of their mother’s bodyweigh

From playlist Animal Science

Video thumbnail

Dimensions Chapter 1

Chapter 1 of the Dimensions series. See http://www.dimensions-math.org for more information. Press the 'CC' button for subtitles.

From playlist Dimensions

Related pages

Data type | Ellipsis | Signedness | Data structure alignment | Bit | Integer (computer science)