![]() ![]() ![]() ![]() Each element of the set can then be referenced by means of a number called an index number or subscript.ĭeclaration of arraysLike any other variable arrays must be declared before they are used. In C we can define a variable called grade, which represents not a single value of grade but an entire set of grades. Suppose we had a set of grades that we wished to read into the computer and suppose we wished to perform some operations on these grades, we will quickly realize that we cannot perform such an operation until each and every grade has been entered since it would be quite a tedious task to declare each and every student grade as a variable especially since there may be a very large number. The C language provides a capability that enables the user to define a set of ordered data items known as an array. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |