Coding for DUMMIES 07 : Arrays in C
Today lets see how to use arrays inside of a c program. first lets see some example of arrays .
In here we can see a program with arrays. In this program we can get a output that display the values that they are initialized with.
We can initialize the same array like this also.
In this program you will able to see some of the behavior of garbage data.
Lets do some array programs to get more idea about arrays.
Now lets see an example for character array.
Now lets see a base converter program. This may be some advance than the previous example that we did.
Now lets see a multidimensional array. In this below example we can see a two dimensional array. We can create arrays with more than two dimensions.We can initialize the array only with using comma operators.
now lets look into some problems that uses arrays
Find the minimum and maximum of sequence of 10 numbers stored in array.
Find the total and average of a sequence of 10 numbers stored in array.
8.Design a program for payroll department to calculate the monthly payment of 10
employees. Use arrays appropriately. Finally you need to display 10 pay sheets one after
the other.
Now we hope you have learned about C operators and how to use them in programming well . so until next make sure to practice programming everyday. practice what makes you a good programmer.
contribution : - Sandakelum Kumarasiri @SK2208 5737
Ranishka Gunathilake @RG761 5641
Mahesh Wijenayaka @MW1513 5734
Ranishka Gunathilake @RG761 5641
Mahesh Wijenayaka @MW1513 5734