Learn C
Coading is not typing it is imagination......
Wednesday, July 1, 2015
***find a specific value from an array
#include<stdio.h>
int main()
{
int arr[2][2];
int i, j;
for(i=0; i<2; i++)
{
for(j=0;j<2;j++)
{
printf("\nEnter value for arr[%d][%d]:", i, j);
scanf("%d", &arr[i][j]);
}
}
printf("\nThe value of the selected array is :%d\n",arr[1][1]);
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment