answersLogoWhite

0


Best Answer

mano ni anda yarrr

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a c program on reverse the diagonal element of matrix?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you Write A program in c language for checking a diagonal matrix?

Write a program in c++ that take input in a integer matrix of size 4*4 and find out if the entered matrix is diagonal or not.


What is the definition of a diagonal matrix?

Diagonal Matrix A square matrix A which is both uper-triangular and lower triangular is called a diagonal matrix. Diagonal matrix is denoted by D.


Is the scalar matrix is always a identity matrix?

No. A scalar matrix is a diagonal matrix whose main diagonal elements are the same. Only if the diagonal elements are all 1 is it an identity matrix.


Is null matrix is diagonal matrix?

Yes.


What is the determinant of a 3x3 diagonal matrix?

It is the product of the three diagonal elements.


What is a minor diagonal matrix?

A minor diagonal matrix is one where the only non-zero entries are along the diagonal that runs from bottom most left to upper most right.


What is the trace of a matrix to a power?

It is the diagonal entries of the matrix raised to a power.


Is a matrix multiplied by its transpose diagonalisable?

It will be a square matrix and, to that extent, it is diagonalisable. However, the diagonal elements need not be non-zero. It will be a square matrix and, to that extent, it is diagonalisable. However, the diagonal elements need not be non-zero. It will be a square matrix and, to that extent, it is diagonalisable. However, the diagonal elements need not be non-zero. It will be a square matrix and, to that extent, it is diagonalisable. However, the diagonal elements need not be non-zero.


Write a C program to accept the elements of a 3 x 3 matrix and find its sum of the major diagonal elements The program should print the given matrix along with its sum of the major diagonal elements?

#include <stdio.h> #include <conio.h> void main() { int d[3][3] = { 1, 2, 6, 3, 8, 5, 5, 6, 7 }; int k = 0, j = 0; int sum1 = 0, sum2 = 0; for (j = 0; j < 3; j++) { for (k = 0; k < 3; k++) printf(" %3d", d[j][k]); printf("\n"); } for (j = 0; j < 3; j++) { sum1 = sum1 + d[j][j]; } k = 3 - 1; for (j = 0; j < 3; j++) { if (k >= 0) { sum2 = sum2 + d[j][k]; k--; } } printf("Sum of First diagonal= %d\n", sum1); printf("Sum of Second diagonal= %d", sum2); getch();


What does it mean for a matrix to be triangular?

A square matrix in which all the entries of the main diagonal are zero


How do you write a c program to determine if a matrix is symmetric or not?

A matrix is symmetric when it is a perfect square and the transpose of the matrix is equal to the original matrix. The implementation is reasonably straightforward and can be done without actually creating the transposed matrix. We simply imagine a dividing line through the main diagonal (top-left to bottom right) and compare the corresponding elements on each side of that diagonal.bool is_symmetric (int* a, int rows, int cols) {if (rows!=cols) return false;for (int row=0, row


What is term for square matrix with zero determinant?

diagonal