Zahoor Ahmad

 

Home

C/C++

TQM

Data Analysis

Statistics

Computer

Contact

 

Computer Programming (C & C++)-1564

Problems for Practice of Arrays :-

1

 

Write down a C/C++ program, which sorts out the contents of an array of 25 integers.  

 

 

 

 

 

 

2

  For a two dimensional array 'A' that has '4' rows and '3' columns, print the sum of each row and column.

 

   

 

   

3

  Write a program that reads an array A of 20 values and find the largest number.

 

   

 

   

4

  Write a program that input data into an array and find out the number of positive and negative values in the array.

 

   

 

 

5

  Write a program that reads an array of real (float) values and calculate the sum of array elements.
     

 

   

6

  Write a program that accepts a matrix of order 3x4 and find the transpose of the original matrix

 

   

   
     
     
     
     

 

 

The End

 



 

If you find any advertisement showing some indecent material please report its web address (URL) on contact page. It will help us to block such websites to show their ads in future. Sorry for inconvenience.