program pointer dengan array dua dimensi
#include
#include
#include
using namespace std;
void DisplayNumbers(char *Nbr[], int r, int c);
int main()
{
system("COLOR F0");
char number[2][5] = { { 'a', 'b', 'c', 'd', 'e' },{ 'f', 'g', 'h', 'i', 'j' } };
char *pNumbers[2];
*pNumbers = number[0];
for(int i = 0; i<6; i++)
(*pNumbers)[i] = number[0][i];
*(pNumbers+1) = number[1];
for(int i = 0; i<6; i++)
(*(pNumbers+1))[i] = number[1][i];
cout<<" PROGRAM POINTER DENGAN ARRAY DUA DIMENSI"<
Tidak ada komentar:
Posting Komentar