Questions: 1 680

Answers by our Experts: 1 680

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

1. Write a program to swap all the elements in the 1st column with all the corresponding elements in the last column, and 2nd column with the second last column and 3rd with 3rd last etc. of a 2-D array by using functions & dynamic memory allocation. Display the matrix.


2. Given array of integer, write a program to find the next smaller of next greater element of every element in array by using functions & dynamic memory allocation. Elements for which no greater element exists or no smaller of greater element exist, print -1.

Sample Input & Output

Input : arr[] = {5, 1, 9, 2, 5, 1, 7}

Output: 2 2 -1 1 -1 -1 -1

Explanation :

Next Greater -> Right Smaller

5 -> 9 9 -> 2

1 -> 9 9 -> 2

9 -> -1 -1 -> -1

2 -> 5 5 -> 1

5 -> 7 7 -> -1

1 -> 7 7 -> -1

7 -> -1 -1 -> -1


Input : arr[] = {4, 8, 2, 1, 9, 5, 6, 3}

Output : 2 5 5 5 -1 3 -1 -1 


Amlan has listed down the details of the students randomly,ie their names and physics marks.Now,he wants to rearrange the students details in alphabetical order keeping the constraint of the physics marks in descending order.provide a solution in c to him.


Amlan has listed down the details of the students randomly,ie their names and physics marks.Now,he wants to rearrange the students details in alphabetical order keeping the constraint of the physics marks in descending order.provide a solution in c to him.

1. Write a C program to add two matrix using functions & dynamic memory allocation. Also check for addition compatibility.



2. Write a C program to multiply two matrix using functions & dynamic memory

allocation. Also check for multiplication compatibility.

1. Write a C program to find the frequency of even numbers in matrix using functions & dynamic memory allocation.

 

2. Write a C program to find the trace of (sum of diagonal element) matrix using

functions & dynamic memory allocation.


1. Write a C program to arrange row elements in ascending order using functions & dynamic memory allocation.

 

2. Write a C program to arrange column elements in ascending order using functions &

dynamic memory allocation.


1. Write a C Program to find sum and subtraction of two matrices using functions & dynamic memory allocation.


2. Write a C program to check two matrices are identical or not using functions & dynamic memory allocation.


write a program that displys a square of numbers and count them in the following form (CL02) 100 81 64 49 36 25 16


Write a program to  input  name,  roll  number  and  marks  in  5  subjects  for  n  number  of students using structure.  Write  functions  to: -

a.   Find  total  marks  and  percentage  of  all  n  students.

b.   Display  details  of  a  student  with  a  given  roll  number.

c.   Display  the  details  for  all  the  students  having  percentage  in  a  given  

     range.

d.   Sort  the  array  in  ascending order of marks.


Write a program to demonstrate external merge sort
LATEST TUTORIALS
APPROVED BY CLIENTS