Study of 2D array .

#include <stdio.h>

int main(void)
{
float arr[3][5] = { { 1.1, 1.2, 1.3, 1.4, 1.5 },
{ 2.1, 2.2, 2.3, 2.4, 2.5 },
{ 3.1, 3.2, 3.3, 3.4, 3.5 }
};
int i, j;

for(i = 0 ; i < 3 ; i++)
{
printf("\n");
for(j = 0 ; j < 5 ; j++)
printf("%f\t", arr[i][j]);
}

return 0;
}

No comments:

Post a Comment

kiss on google ads if you are anonymous because your ip is trackable.thank you.

......from.admin