sizeof Operator | C Programming Tutorial

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

One point about compatibility, older compilers do not support the 'z' format type specifier and even Microsoft's newest version of it's C compiler does not support it. %lu (long unsigned) works for all compilers I've used from the 1980s to present. Newest versions of GCC will give a warning that you should use %llu (long long unsigned) as size_t was changed from long to long long in late version 10.x or 11.

Good explanation of "sizeof", thanks. One of the best channels I've seen for C programming examples.

Brock-Landers
Автор

Really useful video. Much appreciated.

CuriousCyclist
Автор

I wish I knew the English language, even though I use Arabic automatic translation, because I benefited from your explanation. Thank you for the video

mahmoudmuslm
Автор

why didn't sizeof operator include the null terminating character in the unknown size of array in the 13 minutes 40 seconds in the video?

chiyang
Автор

почему в си при получении размера char[] получаем размер без '\0', а в с++ с ним?

lemmenmin
Автор

Side-note, to Detect too-aggressive, too-lazy, bullshitter using brute-force... to declare variables and tardy-performance issues like select * from one table to rule them all...

Size-of variable is accuracy-efficiency when it comes to blackholes bigger-smaller due to precision issues not space-time continuum. Therefore, modular-matrix 3-dimensional excel-spreadsheet limitations is ideal reduction for existing-formulae to calculate less-than universe terrestrial-forming 3-dimensional efficiency.

Long-doubles may not be a catch-all after-all

engchoontan