- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
✅ Explanation Most people try to use sizeof to find string length That works for memory size,
✅ Explanation: Most people try to use sizeof to find string length. That works for memory size, not for string length 🔹 Why sizeof is wrong here: • sizeof(str) counts total bytes • It also includes the '\0' character • It does not stop at the end of the string 🔹 Why the loop is correct: • C strings end with '\0' • The loop counts characters until '\0' • This gives the actual length of the string • This is exactly how strlen() works internally 📌 Final takeaway • sizeof tells you how much memory is used. • The loop tells you how long the string is. . . . . . #coding #programming #programmer #python #developer #javascript #code #coder #technology #html #computerscience #codinglife #java #webdeveloper #tech #webdevelopment #css #softwaredeveloper #webdesign #linux #programmingmemes #machinelearning #datascience #artificialintelligence #webdev #frontend #reactjs #codingisfun #developerlife #learntocode
Видео ✅ Explanation Most people try to use sizeof to find string length That works for memory size, канала Pasha_Dev
Видео ✅ Explanation Most people try to use sizeof to find string length That works for memory size, канала Pasha_Dev
Комментарии отсутствуют
Информация о видео
23 января 2026 г. 22:18:00
00:00:11
Другие видео канала





















