Saturday, 22 April 2017

Arrays / Session X

part-1

1.Maximum Element in  an Array                                                                 Write a  program to find the maximum element in an array.                                                  
2. Minimum Element in  an Array
Write a program to find the minimum element in an array.
3.Sum of array elements

Write a C program to find the sum of the elements in an array.
4.Sum of 2 arrays
Write a  program to find the sum of the corresponding elements in 2 arrays.

click the link below for codes :  
part 1 - answers 




                                                                 part -2

5.Compatible Arrays                                                                                           

2 arrays are said to be compatible if they are of the same size and if the ith element in the first array is greater than or equal to the ith element in the second array for all i.Write a  program to find whether 2 arrays are compatible or not.

6.Sum of positive numbers                                                                              
Write a program to find the sum of positive numbers in an array.

7.Sum of positive numbers                                                                            
Write a program to find the sum of positive numbers in an array.

8.Sum of even and odd numbers                                                                    
Write a program to find the sum of even and odd numbers in an array.

click the link below for codes :  






                                       part -4

9. Compare 2 arrays                                                                                               
Write a program to find whether 2 arrays are the same.

10.Functions – Array Maximum                                                                                                    
Write a program to find the maximum element in the array using functions.

11. Functions – Matrix Maximum                                          

Write a program to find the maximum element in a matrix using functions.

12.Functions – Null Matrix                                                     

Write a program to find whether the given matrix is null or not using functions.
A null matrix is a matrix in which all its elements are zero.


click the link below for codes :  

No comments:

Post a Comment