Program:
// Program By http://solutionscpp.blogspot.com
// Author Mansoor Ahmed
// GMail ID: secguy000@gmail.com
#include<iostream>
using namespace std;
void filling(int arr[5][5]); //Function Prototype
void printing(int arr[5][5]);
int main()
{
int arr[5][5]={}; // Null Array
filling(arr); //Function Call
printing(arr);
}
void filling(int arr[5][5])
{
//Filling 2D array
cout<<"Filling Data: " <<endl;
for(int i=0; i<5; i++)
{
for(int j=0; j<5; j++)
{
cin>>arr[i][j];
}
}
}
void printing(int arr[5][5])
{
//Printing 2D array
cout<<"\nPrinting Data: " <<endl;
for(int i=0; i<5; i++)
{
for(int j=0; j<5; j++)
{
cout<<arr[i][j];
}
}
}
thank you for sharing useful post.
ReplyDeletec++ programming tutorial
welookups
.
ReplyDeleteNice ,
ReplyDeletewebsite development company in MOhali
Really Great Post The Author is very well known about the topic. C++ Programming Complete Notes
ReplyDelete