#include
#include
void main()
{ int a[10][10],b[10][10],c[10][10],i,j.r,c;
printf("\nNo. of Rows?");
scanf("%d",&r);
printf("\nNo. of Cols?");
scanf("%d",&c);
printf("\nEnter elements for 1st array:");
for(i=0;i
printf("\nEnter elements for 2nd array:");
for(i=0;i
for(i=0;i
printf("\nDisplaying the result:\n");
for(i=0;i
}
getch();
}
If the ans helps you,plz increase the trust point.
Reference:cprogramming-bd.com/c_page1.aspx# array programming
To write a C++ program to display the student details using class and array of object.
If you are using an array : sort using qsort() then take middle element.
int findMax(int *array) { int max = array[0]; for(int i = 1; i < array.length(); i++) { if(array[i] > max) max = array[i] } return max; }
Wright a 'C' program for storage representation of 2-D array.
Reference:cprogramming-bd.com/c_page1.aspx# array programming
To write a C++ program to display the student details using class and array of object.
#include<
array type
Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo,
If you are using an array : sort using qsort() then take middle element.
int findMax(int *array) { int max = array[0]; for(int i = 1; i < array.length(); i++) { if(array[i] > max) max = array[i] } return max; }
Wright a 'C' program for storage representation of 2-D array.
i want to write a simple without using pointer or array c program which will print greatest number when i give 20 number .........How far have you gotten so far?
maxValue = function (array) {mxm = array[0];for (i=0; i<array.length; i++) {if (array[i]>mxm) {mxm = array[i];}}return mxm;}; i don't know
You can write a C++ fib pro using arrays but the problem is the prog becomes very complicated since u need to pass the next adding value in an array.....
To write a program for a seating arrangement in C, you can use a two-dimensional array to represent the seats. First, define the size of the array based on the number of rows and columns. Then, use nested loops to fill the array with seat identifiers (e.g., 'A', 'B', 'C', etc.) and allow user input to assign or rearrange seats. Finally, display the seating arrangement by iterating through the array and printing each seat's status.