Skip to main content

Posts

Showing posts with the label Array in C

Array and it's Beneifts in C Program #DOTC_Mdb

Array in C  Program.   Hi Everyone, Today we will discuss about Array in C . Array is very important in Program so before starting you need to be very clear about loops concept in C as in array nested for loops used mostly. Please follow my below blog for loop concepts for your reference. https://dheeraj60.blogspot.com/2020/06/while-and-do-while-loop-lop-in-c.html https://dheeraj60.blogspot.com/2020/06/nested-for-loop-with-simple-pattern.html https://dheeraj60.blogspot.com/2020/06/loop-concept-in-c-with-examples-dotcmdb.html   Let’s Start with Array . An array is a variable that can store multiple values for any data type like int , float etc ,   in other word int array holds the elements of int types while a float array holds the elements of float types. Arrays always start with 0 . We can access elements of an array by indices. Array has 0 has the first index not 1 as array always start with 0 . Suppose we declare any array of int data type 20 it means tha...