POINTER
POINTER
the
function, and prints the results (a message, the result matrix etc.)
2. Write a function that takes an n x n square matrix A as parameter (n < 100) and returns 1 if A is
an upper-triangular matrix, 0 otherwise.
4. Consider a n x n matrix containing only 0 or 1. Write a function that takes such a matrix and
returns 1 if the number of 1’s in each row are the same and the number of 1’s in each column are the
same; it returns 0 otherwise.
5. Write a function that reads in an m x n matrix A and an n x p matrix B, and returns the product of
A and B in another matrix C. Pass appropriate parameters.
7. Repeat the last exercise when the transpose of A is computed in A itself. Use no additional 2-d
arrays.
Test Data :
Input the string : this is test string
Input the position to start extraction :9
Input the length of substring :4
10. Write a C program to input and print array elements using pointer.