Program 77 #P77 - C program to count Array elements by using sizeof operator #C198
Channel:
Subscribers:
10,700
Published on ● Video Link: https://www.youtube.com/watch?v=bv0VuUx9mRM
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
Other Videos By Rubal Solutions
Tags:
computer education
computer education in Hindi
rubalsolutions
beginner YouTube
coding
developer
newyoutuber
subscribe
sub
computer-science
c language
c programming
sizeof operator
arrays in c
multidimensional arrays
elements
online c language training
c language tutorial videos
c language overview
array in c language
array in c programming tutorial
c arrays
c array program