Here We Will Learn To Program C. I'll try To give my Best To Make you understand.
"Let's Begin"
Lets Learn To Create an Array. In Next Blog We Will Create a User Friendly Array Programme.
![]() |
A Programme To Built an 2 by 2 Array(2-D Array). |
An Array is Used To Store Multiple Values In A Single Variable.
Array Is Mainly Of 3 Types =>
* 1D Array => Data_Type Variable_Name[No Of Rows];
* 2D Array => Data_Type Variable_Name [No Of Rows][No. Of Column];
* Multi D Array => Data_Type Variable_Name[Size1][Size2][Size3]...[Size n];
Before Using any Variable In Programming You Need To Determine Its Data Type.
Here We Are Making 2D Array.
Initialization Of An 2D Array int a[2][2];
In The Next Four Line The Value is Given to the Array.
To Print Array Looping Is An Important Part.
i,j Is Used to Determine Rows And Column To Print an Array.
For Multi D Array The Number of Loop will Increase.
![]() |
OUTPUT |
Download Link Of Above Programme:-
How to Use it.
Download File >Go To Turboc3(or turboc folder)>bin>Paste File>
open Turbo c Application>File>open(or F3)>Select File
NOTE:- Above File Can Be Opened With Other Compilers(Like code blocks, visual studio, etc.), Some Changes Might Require.
THANKS
No comments:
Post a Comment