Thursday, November 7
Pointer to array Declaration and Definition
Many of you has question in your mind that how to declare and define Pointer to Array in C++.
I 'll show how?
I 'll show how?
#include <iostream>
#include <conio.h>
using namespace std;
void main()
{
//int pointer to array declaration.
int *pointer_array[10];
//defining pointer to array.
for(int i=0; i<100; i++)
{
pointer_array[i] = new int[5];
for (int j=0; j<5; j++)
pointer_array[i][j] = -1;
}
getch();
}
saad aapki post ket muntazir rahain gey hum :P
ReplyDeletewhat is this about
ReplyDeletedo we need a post for pointers? :D
ReplyDeletei think i must post a better one, your post does not help much :(
ReplyDeleteDoes not run.. What is this about?
ReplyDeletebhai kuch comments mai samjha he do :P
ReplyDelete