a) Declare an array of 25 integers.
b) Write a line of C code that will print out the value of the 10th item in the array you declared in a).
c) Write C code that will print out every item in the array, in its order in the array (i.e. by index number), in 5 lines of 5 items each.
Can anyone help me write this in C code?
take help from an expert
http://homework.teamtutorial.com/
Reply:#include%26lt;stdio.h%26gt;
#include%26lt;conio.h%26gt;
void main()
{
int arr[25];
clrscr();
//assign value to 10th item as
arr[10]=25;
printf("%d",arr[10]);
getch();
}
Reply:a) int a[25];
baby breath
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment