<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8322521902613875943</id><updated>2011-11-28T07:10:00.235+06:00</updated><category term='Muliti-dimensional Array'/><category term='one dimentional array'/><category term='fibonacci series usin arry'/><category term='using array find avarage'/><category term='C array'/><category term='a c programm for fibonacci number'/><category term='Two-dimensional array'/><category term='avarage calculation'/><category term='function using array'/><category term='array in c'/><category term='fibonacci numbers'/><category term='difference between array and ordinary variable'/><category term='fibonacci'/><category term='array'/><category term='function widt array'/><category term='table with array'/><category term='find avarge of an array'/><category term='array and function'/><category term='m*n array'/><category term='taking input in array'/><category term='array avarage'/><category term='array for programming'/><category term='fibonacci series'/><category term='raw column of array'/><category term='passing array to a function'/><title type='text'>Array in C Programming</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://c-array.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://c-array.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>C  Array</name><uri>http://www.blogger.com/profile/12190257446499248887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://2.bp.blogspot.com/_h0tf9iqHfq0/TNALydceGeI/AAAAAAAAAAc/WXUK-JX_Xyw/S220/hasan.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8322521902613875943.post-7116065383947291211</id><published>2010-11-14T18:18:00.003+06:00</published><updated>2010-11-14T21:28:16.247+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='function using array'/><category scheme='http://www.blogger.com/atom/ns#' term='array and function'/><category scheme='http://www.blogger.com/atom/ns#' term='passing array to a function'/><category scheme='http://www.blogger.com/atom/ns#' term='function widt array'/><title type='text'>Array as a Function’s Parameter</title><content type='html'>&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;In C program we can pass array as like as variable of a function’s parameter. But in here the syntax of formal parameter and actual parameter are difference. Like-&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #8e7cc3;"&gt;&lt;b&gt;Formal parameter  syntax:&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;return_data_type function_name(data_type array_name[])&lt;br /&gt;{&lt;br /&gt;……………………….&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #674ea7;"&gt;&lt;b&gt;Actual parameter syntax:&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;function_name(array_name);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hence in formal parameter  we need to write array name include bracket with it’s data type and don’t need to declare array size. where in actual parameter should write only array name in parenthesis.&lt;br /&gt;&lt;br /&gt;&lt;b style="color: #674ea7;"&gt;Example&lt;/b&gt;:&lt;br /&gt;#include&lt;stdio.h&gt;&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;conio.h&gt;&lt;br /&gt;void funcx(int get_array[])        /*function definition*/ /* formal parameter*/&lt;br /&gt;{&lt;br /&gt;int n;&lt;br /&gt;for(n=0;n&amp;lt;5;n++)&lt;br /&gt;{&lt;br /&gt;printf("\n %d",get_array[n]);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;int hsn[5]={10,20,30,40,50};&lt;br /&gt;clrscr();&lt;br /&gt;funcx(hsn);     /*function calling*//* actual parameter*/&lt;br /&gt;getch();&lt;br /&gt;return 0;&lt;br /&gt;}&lt;/conio.h&gt;&lt;/stdio.h&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8322521902613875943-7116065383947291211?l=c-array.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://c-array.blogspot.com/feeds/7116065383947291211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://c-array.blogspot.com/2010/11/array-as-functions-parameter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default/7116065383947291211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default/7116065383947291211'/><link rel='alternate' type='text/html' href='http://c-array.blogspot.com/2010/11/array-as-functions-parameter.html' title='Array as a Function’s Parameter'/><author><name>C  Array</name><uri>http://www.blogger.com/profile/12190257446499248887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://2.bp.blogspot.com/_h0tf9iqHfq0/TNALydceGeI/AAAAAAAAAAc/WXUK-JX_Xyw/S220/hasan.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8322521902613875943.post-318049061194735439</id><published>2010-11-14T15:32:00.008+06:00</published><updated>2010-11-14T15:47:32.050+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fibonacci'/><category scheme='http://www.blogger.com/atom/ns#' term='fibonacci numbers'/><category scheme='http://www.blogger.com/atom/ns#' term='a c programm for fibonacci number'/><category scheme='http://www.blogger.com/atom/ns#' term='fibonacci series usin arry'/><category scheme='http://www.blogger.com/atom/ns#' term='fibonacci series'/><title type='text'>Fibonacci Series Using an Array</title><content type='html'>&lt;b style="background-color: cyan;"&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Fibonacci Number:&lt;/b&gt; It is an interesting sequence in which each number is eqal to the sum of previous two numbers. As follows:&lt;br /&gt;0 1 1 2 3 5 8 13 21 34 55 89 ……………………………………&lt;br /&gt;This is a program which prints out a table of Fibonacci numbers. This program stores the series in an array, and after calculating it, prints the numbers out as a table.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt; &lt;stdio.h&gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;conio.h&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int fib[100];&lt;br /&gt;int i,n;&lt;br /&gt;clrscr();&lt;br /&gt;printf("How many Fibonacci numbers you want:");&lt;br /&gt;scanf("%d",&amp;amp;n);&lt;br /&gt;fib[0] = 0;&lt;br /&gt;fib[1] = 1;&lt;br /&gt;printf("\n\nSerial   Fibonacci number\n\n");&lt;br /&gt;for(i = 2; i &amp;lt; n; i++)&lt;br /&gt;fib[i] = fib[i-1] + fib[i-2];&lt;br /&gt;&lt;br /&gt;for (i = 0; i &amp;lt; n; i++)&lt;br /&gt;printf("%3d   %6d\n", i, fib[i]);&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int fib[100]; &lt;br /&gt;This defines an array called fib of 100 integers. We in C, the array index is enclosed by square brackets (it avoids misunderstanding with a function call).One can choose how many Fibonacci number he want  less then 100.for this I use int n.Also, the first element of the array(fib[0]) has index zero, and for this n element array, the last element is index n-1.&lt;/conio.h&gt;&lt;/stdio.h&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8322521902613875943-318049061194735439?l=c-array.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://c-array.blogspot.com/feeds/318049061194735439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://c-array.blogspot.com/2010/11/fibonacci-series-using-array.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default/318049061194735439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default/318049061194735439'/><link rel='alternate' type='text/html' href='http://c-array.blogspot.com/2010/11/fibonacci-series-using-array.html' title='Fibonacci Series Using an Array'/><author><name>C  Array</name><uri>http://www.blogger.com/profile/12190257446499248887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://2.bp.blogspot.com/_h0tf9iqHfq0/TNALydceGeI/AAAAAAAAAAc/WXUK-JX_Xyw/S220/hasan.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8322521902613875943.post-2545157098761231380</id><published>2010-11-05T00:03:00.006+06:00</published><updated>2010-11-05T19:40:02.429+06:00</updated><title type='text'>Multiplication table using two-dimensional array:</title><content type='html'>&lt;br/&gt;&lt;br /&gt;#include&lt;stdio.h&gt;&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;conio.h&gt;&lt;br /&gt;#define ROW 5&lt;br /&gt;#define COLOUMN 5&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;clrscr();&lt;br /&gt;int row,coloumn,product[ROW][COLOUMN],i,j;&lt;br /&gt;printf("Multiplication table:\n\n");&lt;br /&gt;printf("   ");&lt;br /&gt;for(j=1;j&amp;lt;=COLOUMN;j++)&lt;br /&gt;{&lt;br /&gt;printf("%4d",j);&lt;br /&gt;}&lt;br /&gt;printf("\n");&lt;br /&gt;printf("-----------------------\n");&lt;br /&gt;for(i=0;i&lt;row;i++)&gt;&lt;br /&gt;{&lt;br /&gt;row=i+1;&lt;br /&gt;printf("%2d|",row);&lt;br /&gt;for(j=1;j&amp;lt;=COLOUMN;j++){&lt;br /&gt;coloumn=j;&lt;br /&gt;product[i][j]=row*coloumn;&lt;br /&gt;printf("%4d",product[i][j]);&lt;br /&gt;}&lt;br /&gt;printf("\n");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;getch();&lt;br /&gt;}&lt;/row;i++)&gt;&lt;/conio.h&gt;&lt;/stdio.h&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8322521902613875943-2545157098761231380?l=c-array.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://c-array.blogspot.com/feeds/2545157098761231380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://c-array.blogspot.com/2010/11/multiplication-table-using-two.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default/2545157098761231380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default/2545157098761231380'/><link rel='alternate' type='text/html' href='http://c-array.blogspot.com/2010/11/multiplication-table-using-two.html' title='Multiplication table using two-dimensional array:'/><author><name>C  Array</name><uri>http://www.blogger.com/profile/12190257446499248887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://2.bp.blogspot.com/_h0tf9iqHfq0/TNALydceGeI/AAAAAAAAAAc/WXUK-JX_Xyw/S220/hasan.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8322521902613875943.post-6132216597986371425</id><published>2010-11-04T23:56:00.004+06:00</published><updated>2010-11-06T19:23:19.131+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='raw column of array'/><category scheme='http://www.blogger.com/atom/ns#' term='table with array'/><category scheme='http://www.blogger.com/atom/ns#' term='m*n array'/><category scheme='http://www.blogger.com/atom/ns#' term='Two-dimensional array'/><category scheme='http://www.blogger.com/atom/ns#' term='Muliti-dimensional Array'/><title type='text'>Two-dimensional array</title><content type='html'>&lt;br/&gt;&lt;br/&gt;&lt;br /&gt;We have already studied about n-element  one-dimensional array, which is same as a list of element. Similarly an m*n, two- dimensional array is same as a table of values which have m rows and n columns.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_h0tf9iqHfq0/TNPkbN5gdQI/AAAAAAAAAA8/b-d1qtpWCgQ/s1600/c-array.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="295" src="http://1.bp.blogspot.com/_h0tf9iqHfq0/TNPkbN5gdQI/AAAAAAAAAA8/b-d1qtpWCgQ/s400/c-array.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;b style="color: blue;"&gt;(For more visual clear display please click on the above format)&lt;/b&gt;&lt;/div&gt;Syntax: data_type array_name[row_size] [column-size];&lt;br /&gt;&lt;br /&gt;Example: int x[5] [5];&lt;br /&gt;This example define a table as integer array having 5 rows and 5 columns.&lt;br /&gt;&lt;br /&gt;I explain a   two dimensional array in below:&lt;br /&gt;&lt;br /&gt;int x[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};&lt;br /&gt;&lt;br /&gt;Hence x can be thought as a table contains 3 rows and 4 columns.&lt;br /&gt;&lt;br /&gt;x[0] [0]=1 x[0][1]=2 x[0][2]=3 x[0][3]=4     &lt;br /&gt;x[1] [0]=5 x[1][1]=6 x[1][2]=7 x[1][3]=8&lt;br /&gt;x[2] [0]=9 x[2][1]=10 x[2][2]=11 x[2][3]=12&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8322521902613875943-6132216597986371425?l=c-array.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://c-array.blogspot.com/feeds/6132216597986371425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://c-array.blogspot.com/2010/11/two-dimensional-array.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default/6132216597986371425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default/6132216597986371425'/><link rel='alternate' type='text/html' href='http://c-array.blogspot.com/2010/11/two-dimensional-array.html' title='Two-dimensional array'/><author><name>C  Array</name><uri>http://www.blogger.com/profile/12190257446499248887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://2.bp.blogspot.com/_h0tf9iqHfq0/TNALydceGeI/AAAAAAAAAAc/WXUK-JX_Xyw/S220/hasan.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_h0tf9iqHfq0/TNPkbN5gdQI/AAAAAAAAAA8/b-d1qtpWCgQ/s72-c/c-array.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8322521902613875943.post-5405581365668917872</id><published>2010-11-03T19:55:00.001+06:00</published><updated>2010-11-06T19:24:46.168+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='array avarage'/><category scheme='http://www.blogger.com/atom/ns#' term='avarage calculation'/><category scheme='http://www.blogger.com/atom/ns#' term='using array find avarage'/><category scheme='http://www.blogger.com/atom/ns#' term='find avarge of an array'/><title type='text'>Program using array</title><content type='html'>&lt;br&gt;&lt;br&gt;&lt;br /&gt;&amp;nbsp;&lt;b style="color: purple;"&gt;Finding avarage using array:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clrscr();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int n,i;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; float avg,sum=0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; float arr[50];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("How many number you will take for avarage calculation:");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf("%d",&amp;amp;n);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;n;i++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; printf("arr[%d]=",i+1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; scanf("%f",&amp;amp;arr[i]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; sum=sum+arr[i];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; avg=sum/n;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("Avarage is %f",avg);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; getch();&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8322521902613875943-5405581365668917872?l=c-array.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://c-array.blogspot.com/feeds/5405581365668917872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://c-array.blogspot.com/2010/11/program-using-array.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default/5405581365668917872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default/5405581365668917872'/><link rel='alternate' type='text/html' href='http://c-array.blogspot.com/2010/11/program-using-array.html' title='Program using array'/><author><name>C  Array</name><uri>http://www.blogger.com/profile/12190257446499248887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://2.bp.blogspot.com/_h0tf9iqHfq0/TNALydceGeI/AAAAAAAAAAc/WXUK-JX_Xyw/S220/hasan.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8322521902613875943.post-3050079753021820367</id><published>2010-10-30T20:09:00.001+06:00</published><updated>2010-11-06T19:28:27.409+06:00</updated><title type='text'>Array Representation</title><content type='html'>&lt;br/&gt;&lt;br/&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&lt;b&gt;Array Representation:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;Shown below some example of array defination for assignment of initial values:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;int digit[10] ={1,2,3,4,5,6,7,8,9,10};&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;float f[10]={0.3,0,0.25}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;For example, i want to represent five integer number in an array,say(10,20,30,40,50) by an array variable name &lt;b&gt;number,&lt;/b&gt;then declaration of array variable &lt;b&gt;number&lt;/b&gt; as followes:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;int number[5] ;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;The values to the array elements can be assigned as follows:&lt;/span&gt;&lt;br /&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:"\0022Courier New\0022";	panose-1:0 0 0 0 0 0 0 0 0 0;	mso-font-alt:"Times New Roman";	mso-font-charset:0;	mso-generic-font-family:roman;	mso-font-format:other;	mso-font-pitch:auto;	mso-font-signature:0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:"\0022Courier New\0022";	panose-1:0 0 0 0 0 0 0 0 0 0;	mso-font-alt:"Times New Roman";	mso-font-charset:0;	mso-generic-font-family:roman;	mso-font-format:other;	mso-font-pitch:auto;	mso-font-signature:0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;  &lt;br /&gt;&lt;div class="MsoNormal"&gt;number[0]=10;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[1]=20;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[2]=30;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[3]=40;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[4]=50;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;  &lt;/div&gt;&lt;div class="MsoNormal"&gt;For this case the array number stored valued as shown below:&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;  &lt;/div&gt;&lt;table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse;"&gt;&lt;tbody&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;number[0] &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp; 10&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;number [1]&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp; 20 &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;number [2] &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp; 30&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;number [3] &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp; 40&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;number [4] &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp; 50&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;&amp;nbsp;  &lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&amp;nbsp;  Also consider the following array definition:&lt;br /&gt;&amp;nbsp;&amp;nbsp; int number[5]={1,5,8};&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;The values to the array elements can be assigned as follows:&lt;/span&gt;&lt;br /&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:"\0022Courier New\0022";	panose-1:0 0 0 0 0 0 0 0 0 0;	mso-font-alt:"Times New Roman";	mso-font-charset:0;	mso-generic-font-family:roman;	mso-font-format:other;	mso-font-pitch:auto;	mso-font-signature:0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:"\0022Courier New\0022";	panose-1:0 0 0 0 0 0 0 0 0 0;	mso-font-alt:"Times New Roman";	mso-font-charset:0;	mso-generic-font-family:roman;	mso-font-format:other;	mso-font-pitch:auto;	mso-font-signature:0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;  &lt;br /&gt;&lt;div class="MsoNormal"&gt;number[0]=1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[1]=5;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[2]=8;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[3]=0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[4]=0;&lt;br /&gt;&lt;br /&gt;Note:character&amp;nbsp; type array use last index for null('\0') .&lt;br /&gt;char name[6]={"hasan"};&lt;br /&gt;the array elements are stored as follows:&lt;/div&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;name[0]='h';&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;name[1]='a';&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;name[2]='s';&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;name[3]='a';&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;name[4]=n'';&lt;/div&gt;name[5]='\0';&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr style="color: black;"&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8322521902613875943-3050079753021820367?l=c-array.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://c-array.blogspot.com/feeds/3050079753021820367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://c-array.blogspot.com/2010/10/array-representation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default/3050079753021820367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default/3050079753021820367'/><link rel='alternate' type='text/html' href='http://c-array.blogspot.com/2010/10/array-representation.html' title='Array Representation'/><author><name>C  Array</name><uri>http://www.blogger.com/profile/12190257446499248887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://2.bp.blogspot.com/_h0tf9iqHfq0/TNALydceGeI/AAAAAAAAAAc/WXUK-JX_Xyw/S220/hasan.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8322521902613875943.post-384026687303686253</id><published>2010-10-28T21:57:00.004+06:00</published><updated>2010-11-06T19:30:08.770+06:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='taking input in array'/><category scheme='http://www.blogger.com/atom/ns#' term='array'/><category scheme='http://www.blogger.com/atom/ns#' term='one dimentional array'/><category scheme='http://www.blogger.com/atom/ns#' term='array for programming'/><category scheme='http://www.blogger.com/atom/ns#' term='C array'/><category scheme='http://www.blogger.com/atom/ns#' term='array in c'/><category scheme='http://www.blogger.com/atom/ns#' term='difference between array and ordinary variable'/><title type='text'>C Array</title><content type='html'>&lt;br/&gt;&lt;br/&gt;&lt;br /&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;Array: Array is one kind of variable declaration of &lt;b&gt;same types&lt;/b&gt; of data with &lt;b&gt;a name&lt;/b&gt; and identify them one from another followed by subscripts or index.&lt;br /&gt;Example: int arr[10];&lt;br /&gt;Hence &lt;b&gt;int&lt;/b&gt; is data type.&lt;b&gt;arr&lt;/b&gt; is array name.&lt;b&gt;arr[10] &lt;/b&gt;means&lt;b&gt; &lt;/b&gt;we can keep ten integer type value in&lt;b&gt; arr[10];&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;&lt;br /&gt;The declaration&lt;b&gt; int arr[10]&lt;/b&gt;; would reserve enough space for an array called &lt;b&gt;arr&lt;/b&gt; that could hold up to&lt;b&gt; 10&amp;nbsp;&lt;/b&gt;&amp;nbsp; &lt;b&gt;integers&lt;/b&gt;. The &lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;picture &lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;given &lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;below&amp;nbsp; clear to concept about the &lt;b&gt;Array&lt;/b&gt; reserved storage space.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}p	{mso-margin-top-alt:auto;	margin-right:0in;	mso-margin-bottom-alt:auto;	margin-left:0in;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;  &lt;br /&gt;&lt;table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse;"&gt;&lt;tbody&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal" style="color: red;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;arr[0] &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal" style="color: red;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;arr[1]&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;&lt;span style="color: red;"&gt;arr[2]&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;&lt;span style="color: red;"&gt;arr[3]&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal" style="color: red;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;arr[4] &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal" style="color: red;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;arr[5] &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal" style="color: red;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;arr[6] &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;&lt;span style="color: red;"&gt;arr[7]&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal" style="color: red;"&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;arr[8] &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;&lt;span style="color: red;"&gt;arr[9]&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="MsoNormal" style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&lt;span style="color: purple;"&gt;Note&lt;/span&gt;: Array index range from 0 to n-1.Here index of &lt;b&gt;arr[10]&lt;/b&gt; is start from &lt;b&gt;arr[0]&lt;/b&gt; and end at &lt;b&gt;arr[9]&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: purple;"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;Array Declaration:&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&lt;b&gt;data_type variable_name[size];&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&lt;b&gt;&lt;span style="color: magenta;"&gt;Example&lt;/span&gt;:int month[12];&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; float number[10]; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char name[10];&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&lt;b&gt;Array Representation:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&amp;nbsp; Shown below some example of array defination for assignment of initial values:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&amp;nbsp; int digit[10] ={1,2,3,4,5,6,7,8,9,10};&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&amp;nbsp; float f[10]={0.3,0,0.25}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&amp;nbsp;For example, i want to represent five integer number in an array,say(10,20,30,40,50) by an array variable name &lt;b&gt;number,&lt;/b&gt;then declaration of array variable &lt;b&gt;number&lt;/b&gt; as followes:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;int number[5] ;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;The values to the array elements can be assigned as follows:&lt;/span&gt;&lt;br /&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:"\0022Courier New\0022";	panose-1:0 0 0 0 0 0 0 0 0 0;	mso-font-alt:"Times New Roman";	mso-font-charset:0;	mso-generic-font-family:roman;	mso-font-format:other;	mso-font-pitch:auto;	mso-font-signature:0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:"\0022Courier New\0022";	panose-1:0 0 0 0 0 0 0 0 0 0;	mso-font-alt:"Times New Roman";	mso-font-charset:0;	mso-generic-font-family:roman;	mso-font-format:other;	mso-font-pitch:auto;	mso-font-signature:0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;  &lt;br /&gt;&lt;div class="MsoNormal"&gt;number[0]=10;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[1]=20;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[2]=30;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[3]=40;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[4]=50;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;  &lt;/div&gt;&lt;div class="MsoNormal"&gt;For this case the array number stored valued as shown below:&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;  &lt;/div&gt;&lt;table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse;"&gt;&lt;tbody&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;number[0] &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp; 10&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;number [1]&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp; 20 &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;number [2] &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp; 30&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;number [3] &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp; 40&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;div class="MsoNormal"&gt;&lt;span style="color: maroon; font-family: &amp;quot;Courier New&amp;quot;; font-size: 9pt;"&gt;number [4] &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp; 50&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;&amp;nbsp;  &lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&amp;nbsp;  Also consider the following array definition:&lt;br /&gt;&amp;nbsp;&amp;nbsp; int number[5]={1,5,8};&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;The values to the array elements can be assigned as follows:&lt;/span&gt;&lt;br /&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:"\0022Courier New\0022";	panose-1:0 0 0 0 0 0 0 0 0 0;	mso-font-alt:"Times New Roman";	mso-font-charset:0;	mso-generic-font-family:roman;	mso-font-format:other;	mso-font-pitch:auto;	mso-font-signature:0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Font Definitions */ @font-face	{font-family:"\0022Courier New\0022";	panose-1:0 0 0 0 0 0 0 0 0 0;	mso-font-alt:"Times New Roman";	mso-font-charset:0;	mso-generic-font-family:roman;	mso-font-format:other;	mso-font-pitch:auto;	mso-font-signature:0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;  &lt;br /&gt;&lt;div class="MsoNormal"&gt;number[0]=1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[1]=5;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[2]=8;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[3]=0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;number[4]=0;&lt;br /&gt;&lt;br /&gt;Note:character&amp;nbsp; type array use last index for null('\0') .&lt;br /&gt;char name[6]={"hasan"};&lt;br /&gt;the array elements are stored as follows:&lt;/div&gt;&lt;br /&gt;&lt;div class="MsoNormal"&gt;name[0]='h';&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;name[1]='a';&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;name[2]='s';&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;name[3]='a';&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;name[4]=n'';&lt;/div&gt;name[5]='\0';&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;/tr&gt;&lt;tr style="color: black;"&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="color: black;"&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"&gt;&lt;/meta&gt;&lt;meta content="Word.Document" name="ProgId"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Generator"&gt;&lt;/meta&gt;&lt;meta content="Microsoft Word 10" name="Originator"&gt;&lt;/meta&gt;&lt;link href="file:///C:%5CDOCUME%7E1%5Chasan%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" rel="File-List"&gt;&lt;/link&gt;&lt;style&gt;&lt;!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal	{mso-style-parent:"";	margin:0in;	margin-bottom:.0001pt;	mso-pagination:widow-orphan;	font-size:12.0pt;	font-family:"Times New Roman";	mso-fareast-font-family:"Times New Roman";}@page Section1	{size:8.5in 11.0in;	margin:1.0in 1.25in 1.0in 1.25in;	mso-header-margin:.5in;	mso-footer-margin:.5in;	mso-paper-source:0;}div.Section1	{page:Section1;}--&gt;&lt;/style&gt;  &lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;b style="color: purple;"&gt;&lt;u&gt;Difference between array variable and ordinary variable&lt;/u&gt;&lt;/b&gt;: In an ordinary variable we can assign same types of only one value, but in an array variable we can assign same types of more then one values.&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;For example: &lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"&gt;int number;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; number=5;&lt;/div&gt;&lt;div class="MsoNormal"&gt;In this number variable we can take only one integer value.&lt;/div&gt;&lt;div class="MsoNormal"&gt;For&amp;nbsp; an array variable  we can assign more then one same types of values.Shown in below:&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int number[5];&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; number[0]=10;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; number[1]=20;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; number[2]=30;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; number[3]=40;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; number[4]=50;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="color: black;"&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;u style="color: purple;"&gt;&lt;b&gt;Taking input throw keyboard and output with a C program:&lt;/b&gt;&lt;/u&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;/td&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="color: black;"&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="color: black;"&gt;&lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 1in;" valign="top" width="96"&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;conio.h&amp;gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clrscr();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int number[5],i;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("Take five integer value throuh keyboard:\n\n");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;5;i++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; printf("number[%d]=",i+1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; scanf("%d",&amp;amp;number[i]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\n\nDisplay the array\n\n");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;5;i++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; printf("number[%d]=%d\n",i+1,number[i]);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; getch();&lt;br /&gt;}&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;; font-size: 12pt;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8322521902613875943-384026687303686253?l=c-array.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://c-array.blogspot.com/feeds/384026687303686253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://c-array.blogspot.com/2010/10/c-array.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default/384026687303686253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8322521902613875943/posts/default/384026687303686253'/><link rel='alternate' type='text/html' href='http://c-array.blogspot.com/2010/10/c-array.html' title='C Array'/><author><name>C  Array</name><uri>http://www.blogger.com/profile/12190257446499248887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://2.bp.blogspot.com/_h0tf9iqHfq0/TNALydceGeI/AAAAAAAAAAc/WXUK-JX_Xyw/S220/hasan.jpg'/></author><thr:total>1</thr:total></entry></feed>
