Program 77 #P77 - C program to count Array elements by using sizeof operator #C198

preview_player
Показать описание
sizeof() operator returns the total number of size occupied by a variable,
since array is also a variable, we can get the occupied size of array elements.

Logic
Get the occupied size of all array elements and divide it with the size of array
type. Let suppose there is an integer array with 5 elements then size of the array
will be 5*4=20 and the size of array type will be 4. Divide 20 by the 4 answer will
be 5 which is the number of array elements.

#rubalsolutions #coding #developer #programming #programmer #technology #clanguage #computerscience #c #informaticpractices #sub #subscribe #youtube #newyoutuber #youtubechannel
Рекомендации по теме
Комментарии
Автор

Like 2 dear friend...useful vedio..😍😍💖🌹🌹💗

Man_kiawaz
welcome to shbcf.ru