Ask a New Question

Asked by nakul

write a c programs to find the trace of a given matrix.
10 years ago

Answers

Answered by Anonymous
for an integer matrix,

int trace(int *a,int n) {
int t=0,i;
for (i=0;i<n;i++) {t += *(a[i*n+i])}
return t;
}
10 years ago
There are no AI answers yet. The ability to request AI answers is coming soon!

Submit Your Answer


We prioritize human answers over AI answers.

If you are human, and you can answer this question, please submit your answer.

Related Questions

Write a programs to calculate the average,score of student in a course write a quiz programs in Q Basic to ask 5 questions to the user and calculate the score Find two programs that interest you at Education Planner and complete the chart below for each progr... Hello. Are there any programs with which we can change voice into text? How much are the programs? W... 1. Do you like sci-fi programs? Do you like sci-fies? Do you like sci-fis? (Which one is correct?... bob needs 161 programs for the school play on thursday.how many boxes of programs will he need, give... 4. What programs allow you to earn both college and high school credits at the same time? ext... Although some of the programs created by FDR were seen as unconstitutional, which program is still a... what are some programs to do for girls Which of the following programs is MOST efficient when it comes to digital modeling and adding textu...
Submit Your Answer

Question

write a c programs to find the trace of a given matrix.

Ask a New Question
Archives Contact Us Privacy Policy Terms of Use