#include<stdio.h>
#include<conio.h>
void main()
{
int a[10][10],i,j,n,m,trace=0,norm=0;
clrscr();
printf("Enter the order of the matrix(no. of rows and columns) : ");
scanf("%d%d",&n,&m);
if(n == m)
{
printf("Trace is exist\n");
printf("Enter matrix elements\n");
for(i=0;i<=n-1;i++)
{
for(j=0;j<=m-1;j++)
{
scanf("%d\n",&a[i][j]);
}
}

for(i=0;i<=n-1;i++)
{
trace+=a[i][i];
for(j=0;j<=m-1;j++)
{
norm+=a[i][j]*a[i][j];
}
}
printf("Trace of the matrix :%d\n ",trace);
printf("Norm of the matrix :%d ",sqrt(norm));
}
else
printf("Trace and norm do not exist");
getch();
}

Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement 
Corporate Services
  Web Design and development
  Web Promotion (SEO)
  Multimedia/CD Presentation
  Software development

  E.Commerce

Training@balujalabs

  Software Courses
  Hardware Courses
  Networking.Courses
  Mobile Repairing Courses
  UGC Degrees
Student Corner
 Programming & Projects
 Placement Papers
 Project Ideas
 Synopsis Ideas

  Franchise Section

 Administrator
Franchise Inquiry
 
 

Write a program to input a matrix ,determine if it is symmetrical matrix
(a matrix is said to be symmetrical when A=A)

 

 

 

 

 

 

 

 

 

                                                                                                                                          

1 Program to illustrate the reading and writing of the array.
2 Posting array to the function.
3 To insert an element in an array.
4 To delete an element in an array.
5 To merge two one dimensional arrays.
6

To input element of a matrix and display them.

7 To display elements of an array using pointers.
8 To display content of pointers using an array of pointers.
9 To evaluate the average of five numbers.
10 To input two matrices and then print a matrices which is addition of these two matrixes.
11 To input two matrices and then print the product of two matrices.
12 To find smallest number of an array.
13

To find highest and lowest element in an array.

14 To generate Fibonacci series using arrays.
15 Write a program to find trace & norm of a matrix. Trace is defined as the sum of principal diagonal elements; Norm is defined as the square root of the sum of the squares of all the elements in a matrix.
16 Write a program to find whether a matrix is upper triangle or not (a matrix is said to be upper triangular matrix only when its elements below the diagonal are zeros
17 Write a program to input a matrix ,determine if it is symmetrical matrix (a matrix is said to be symmetrical when A=A)
18 Each elements of an array DATA [20][50] require 4 bytes of storages. Base address of DATA IS 2000, determine the location of data [10][10]. When the array is stored has (a) Row major (b) Column major.
19 A two dimension array X [5][4] is stored a row-wise in the memory. The first elements of the array are stored location 80. Find the memory location of X[3][2]. If the each element of array require 4 memory locations.
20

20. Given an arrays X [6][6] who base address is 100. Calculate the Locations X [2][5] if each elements occupies 4 bytes and array is stored row-wise.

21 Write a program to find the sum of the two matrices a and b and store The sum in matrix c. Print matrix c using pointers.
22 Write a program that reads a group of numbers from the user and Places them in an array of type float. Once the numbers are stored in the array, the program should average them and print the result. Use pointer notation where ever possible.

 

     
Home       |      About Us       |     Portfolio       |      Services       |       Career        |    Contact Us       |      Industrial Training        |      Achievement