Write a program, that takes 16-Elements in Two-Dimensional-Array that has 4 rows & 4 columns, then display the diagonal of Matrix. #include<iostream> using namespace std; int main() { int arr[4][4],i,j; cout<<"Enter elements of array: "<<endl; ...
Monday, 1 January 2018

Take three values from the user and find discriminant then find the root if disc is greater than less than or equal to zero
Take three values from the user and find discriminant then find the root if disc is greater than less ...

Write a program, that takes 12-Elements in Two-Dimensional-Array that has 3 rows & 4 columns, then Transpose of that Matrix & Display it.
Write a program, that takes 12-Elements in Two-Dimensional-Array that has 3 rows & 4 columns, then Transpose of that Matrix & Display it. ...

Declare and define an array and sort the values in ascending order.
Declare and define an array and sort the values in ascending order. #include<iostream> using namespace std; main() { int i,a[10],temp,j; cout<<"Enter any 10 num in array: \n"; for(i=0;i<=10;i++) { cin>>a[i]; } cout<<"\nData before sorting: ";...

take a single dimensional array set the default values to 0 or -1, take choice from the user if a inser values the values for the array, if b update the values and if c delete values from the array.
take a single dimensional array set the default values to 0 or -1, take choice from the user if a inser values the values for the array, if b update the values and if c delete values...

Write a program to pass array as an argument to the function.
Write a program to pass array as an argument to the function. #include<iostream> using namespace std; void display (int marks [5]); int main() { int marks[5]={88,34,54,45,32}; display (marks); return 0; } void display (int m[5]) {...

Write a program using array and swap first and last value of array.
Write a program using array and swap first and last value of ...

Implement stack
Implement stack #include<stdio.h> #define MAX_SIZE 101 int A[MAX_SIZE]; // integer array to store the stack int top = -1; // variable to mark top of stack in array // Push operation to insert an element on...

Write a program to pass an array of structure to the function.
Write a program to pass an array of structure to the function. #include<iostream> using namespace std; struct student { char fname[50]; char sname[50]; int id; unsigned int phone; }; void fun(student[]); main() { student s[3]; for(int...

Write a program to enter data into a structure variable of array type that has 10 elements and each record contains three fields.
Write a program to enter data into a structure variable of array type that has 10 elements and ...
Write a program, that takes 16-Elements in Two-Dimensional-Array that has 4 rows & 4 columns, then display the diagonal of Matrix.
Write a program, that takes 16-Elements in Two-Dimensional-Array that has 4 rows & 4 columns, then display the diagonal of Matrix. ...
