C++ Sizeof Operator with Variables, Data types, Structures, Unions | CPP Video Tutorial

preview_player
Показать описание
In this c++ / cpp programming video tutorials / lecture for beginners video series, you will learn about the size of operator / function in detail with example.

You will learn what is the use of size of operator, how to use it with datatypes, variables and structures in detail with example.

Learn Programming in HINDI at our youtube channel

Catch us on SocialMedia
Рекомендации по теме
Комментарии
Автор

Your tutorials help me a lot.thank, you sir

Codeshub
Автор

excellent work done BY led you @anil it is so helpfull for me

rajneeshkaswan
Автор

size change due to structure padding...
try to define char above int in structure and then complie

aquibakhtar
Автор

Can you make a tutorial series on python as well! I liked this c++ tutorials of learning lad

arpitbal
Автор

Sir using size of operator in case of dynamic memory allocation is good practice ? Because size of is a compile time process so when i move the executable to another different machine will there be any issues

vasireddyganesh
Автор

sir, is it compiler optimization? or memory padding? 4:15

tawseeftaher
Автор

The structure taking up 8 bytes is a requirement imposed by Microsoft. More specifically:
"The alignment of the beginning of a structure or a union is the maximum alignment of any individual member. Each member within the structure or union must be placed at its proper alignment... which may require implicit internal padding, depending on the previous member."
"Structure size must be an integral multiple of its alignment, which may require padding after the last member. Since structures and unions can be grouped in arrays, each array element of a structure or union must begin and end at the proper alignment previously determined."

TheParkourPenguin
Автор

am planning to complete all the lecture 148 and than again go through Herbert Schildt C++Complete Reference what are your view if you can tell me

ankitrasania
Автор

i wrote sizeof(main()), run. The result was 4 8-0

ДимаКимсыщик
Автор

Where is this *_size of_* operator used actually?

appanrakaraddi
visit shbcf.ru