hi,there!! #include void main() { int a=125; int *j,**k; j=&a; k=&j; printf("\n\tValue of a=%d",a); printf("\n\tValue of a=%d",*j); printf("\n\tvalue of a=%d",**k); printf("\n\tAddress of a=%u",&a); printf("\n\tAddress of a=%u",j); printf("\n\taddress of j=%u",&j); printf("\n\taddress of j=%u",k); }
/*Demonstrate the use of pointer to pointer*/ #include void main() { int i=2,*j,**k; j=&i; k=&j; { printf("value of j= %d",*j); } { printf("\n Value of K=%d\n",**k); } }
#include void main() { int a=248; int *j,**k; j=&a; k=&j; printf("\n\t value of a=%d",a); printf("\n\t value of a=%d",*j); printf("\n\t value of a=%d",**k); printf("\n\t address of a=%u",&a); printf("\n\t address of a=%u",j); printf("\n\t address of a=%u",&j); printf("\n\t address of a=%u ",k); }
#include void main() { int a=12; int *j,**k; j=&a; k=&j; printf("\n\tValue of a=%d",a); printf("\n\tValue of a=%d",*j); printf("\n\tvalue of a=%d",**k);
int i=10; int*j; j=&i; int **k; k = &j; printf("\nAddress of i = %u",&i); printf("\nAddress of i = %u",j); printf("\nAddress of i = %u",*k); printf("\nAddress of j = %u",&j); printf("\nAddress of j = %u",k); printf("\nAddress of k = %u",&k); printf("\nValue of j = %u",j); printf("\nValue of k = %u",k); printf("\nValue of i = %d",i); printf("\nValue of i = %d",*(&i)); printf("\nValue of i = %d",*j); printf("\nValue of i = %d",**k);
// Demonstration pointer to pointer #include void main() { int i=2; int *j; j=&i; int **k; k=&j; printf("\nvalue of i=%d",i); printf("\nvalue of i=%d",*&i);
#include void main() { int a=10; int *p,**q; p=&a; q=&p; printf("value of a=%d\n",a); printf("value of a=%d\n",*p); printf("value of a=%d\n",**q); printf("Address of a=%u\n",&a); printf("Address of p=%u\n",&p); printf("Address of q=%u\n",&q); }
// Demonstration pointer to pointer #include void main() { int i=2; int *j; j=&i; int **k; k=&j; printf("\nvalue of i=%d",i); printf("\nvalue of i=%d",*&i);
#include void main() { int i=2; int *j; j=&i; int **k; k=&j; printf("\n value of i=%d",i); printf("\n value of i=%d",&i); printf("\n value of j=%u",&i); printf("\n value of k=%u",&j); printf("\n value of i=%d",**k); }
/ Demonstration pointer to pointer #include void main() { int i=2; int *j; j=&i; int **k; k=&j; printf("\nvalue of i=%d",i); printf("\nvalue of i=%d",*&i);
/*pointer to pointer*/ #include void main() { int i=2; int *j; int **k; j=&i; k=&j; { printf("\n\t value of j=%d",*j); } { printf("\n\t value of k=%d\n",**k);
//Use of pointer to pointer #include void main() { int a=11; int *p,**k; p=&a; k=&p; printf("value of a=%d \t",a); printf("value of a=%d \t",*p); printf("value of a=%d \t",**k); printf("Address of a=%u \t",&a); printf("Address of p=%u \t",&p); printf("Address of k=%u \n",&k); }
// Demonstration pointer to pointer #include void main() { int i=2; int *j; j=&i; int **k; k=&j; printf("\nvalue of i=%d",i); printf("\nvalue of i=%d",*&i);
#include void main() { int a=11; int *p,**k; p=&a; k=&p; printf("value of a=%d \t",a); printf("value of a=%d \t",*p); printf("value of a=%d \t",**k); printf("Address of a=%u \t",&a); printf("Address of p=%u \t",&p); printf("Address of k=%u \n",&k); }
/*Demonstrate the use of pointer to pointer*/ #include #include void main() { int i=2; int *j; j=&i; int **k; k=&j; printf("\n\t value of i=%d",*(&i));
printf("\n\t address of i=%u",&i); printf("\n\t value of j=%u",&i);
printf("\n\t address of j=%u",&j); printf("\n\t value of k=%u",&j); printf("\n\t address of k=%u",&k); printf("\n\t value of i=%d",**k);
#include void main() { int i=2; int *j; j=&i; int **k; k=&j; printf("\n value of i=%d",i); printf("\n address of i=%u",j); printf("\n value of j=%u",*(&j)); printf("\n address of j=%u",k); printf("\n value of k=%u",*(&k)); printf("\n address of k=%u",&k); printf("\n value of i=%d",**k); }
#include
ReplyDeleteint main () {
int a;
int *ptr;
int **pptr;
a = 3000;
ptr = &a;
pptr = &ptr;
printf("Value of var = %d\n", a );
printf("Value available at *ptr = %d\n", *ptr );
printf("Value available at **pptr = %d\n", **pptr);
return 0;
}
#include
ReplyDeletevoid main()
{
int i=2,*j,**k;
j=&i;
printf("value of j= %d",*j);
k=&j;
printf("\n Value of K=%d\n",**k);
}
hi,there!!
ReplyDelete#include
void main()
{
int a=125;
int *j,**k;
j=&a;
k=&j;
printf("\n\tValue of a=%d",a);
printf("\n\tValue of a=%d",*j);
printf("\n\tvalue of a=%d",**k);
printf("\n\tAddress of a=%u",&a);
printf("\n\tAddress of a=%u",j);
printf("\n\taddress of j=%u",&j);
printf("\n\taddress of j=%u",k);
}
/*Demonstrate the use of pointer to pointer*/
ReplyDelete#include
void main()
{
int i=2,*j,**k;
j=&i;
k=&j;
{
printf("value of j= %d",*j);
}
{
printf("\n Value of K=%d\n",**k);
}
}
#include
ReplyDeletevoid main()
{
int a=248;
int *j,**k;
j=&a;
k=&j;
printf("\n\t value of a=%d",a);
printf("\n\t value of a=%d",*j);
printf("\n\t value of a=%d",**k);
printf("\n\t address of a=%u",&a);
printf("\n\t address of a=%u",j);
printf("\n\t address of a=%u",&j);
printf("\n\t address of a=%u ",k);
}
#include
ReplyDeletevoid main()
{
int a=12;
int *j,**k;
j=&a;
k=&j;
printf("\n\tValue of a=%d",a);
printf("\n\tValue of a=%d",*j);
printf("\n\tvalue of a=%d",**k);
}
/*pointer to pointer*/
ReplyDelete#include
void main()
{
int i=2,*j,**k;
j=&i;
printf("value of j= %d",*j);
k=&j;
printf("\n Value of K=%d\n",**k);
}
#include
ReplyDeletevoid main()
{
int i=10;
int*j;
j=&i;
int **k;
k = &j;
printf("\nAddress of i = %u",&i);
printf("\nAddress of i = %u",j);
printf("\nAddress of i = %u",*k);
printf("\nAddress of j = %u",&j);
printf("\nAddress of j = %u",k);
printf("\nAddress of k = %u",&k);
printf("\nValue of j = %u",j);
printf("\nValue of k = %u",k);
printf("\nValue of i = %d",i);
printf("\nValue of i = %d",*(&i));
printf("\nValue of i = %d",*j);
printf("\nValue of i = %d",**k);
}
// Demonstration pointer to pointer
ReplyDelete#include
void main()
{
int i=2;
int *j;
j=&i;
int **k;
k=&j;
printf("\nvalue of i=%d",i);
printf("\nvalue of i=%d",*&i);
printf("\nvalue of i=%d",**k);
}
//Demonstrate the use of pointer to pointer
ReplyDelete#include
void main()
{
int i=200,*j,**k;
j=&i;
k=&j;
printf("value of j= %d",*j);
printf("\n Value of K=%d\n",**k);
}
#include
ReplyDeletevoid main()
{
int a=10;
int *p,**q;
p=&a;
q=&p;
printf("value of a=%d\n",a);
printf("value of a=%d\n",*p);
printf("value of a=%d\n",**q);
printf("Address of a=%u\n",&a);
printf("Address of p=%u\n",&p);
printf("Address of q=%u\n",&q);
}
// Demonstration pointer to pointer
ReplyDelete#include
void main()
{
int i=2;
int *j;
j=&i;
int **k;
k=&j;
printf("\nvalue of i=%d",i);
printf("\nvalue of i=%d",*&i);
printf("\nvalue of i=%d",**k);
}
#include
ReplyDeletevoid main()
{
int i=2;
int *j;
j=&i;
int **k;
k=&j;
printf("\n value of i=%d",i);
printf("\n value of i=%d",&i);
printf("\n value of j=%u",&i);
printf("\n value of k=%u",&j);
printf("\n value of i=%d",**k);
}
/ Demonstration pointer to pointer
ReplyDelete#include
void main()
{
int i=2;
int *j;
j=&i;
int **k;
k=&j;
printf("\nvalue of i=%d",i);
printf("\nvalue of i=%d",*&i);
printf("\nvalue of i=%d",**k);
}
/*pointer to pointer*/
ReplyDelete#include
void main()
{
int i=2;
int *j;
int **k;
j=&i;
k=&j;
{
printf("\n\t value of j=%d",*j);
}
{
printf("\n\t value of k=%d\n",**k);
}
}
//Use of pointer to pointer
ReplyDelete#include
void main()
{
int a=11;
int *p,**k;
p=&a;
k=&p;
printf("value of a=%d \t",a);
printf("value of a=%d \t",*p);
printf("value of a=%d \t",**k);
printf("Address of a=%u \t",&a);
printf("Address of p=%u \t",&p);
printf("Address of k=%u \n",&k);
}
// Demonstration pointer to pointer
ReplyDelete#include
void main()
{
int i=2;
int *j;
j=&i;
int **k;
k=&j;
printf("\nvalue of i=%d",i);
printf("\nvalue of i=%d",*&i);
printf("\nvalue of i=%d",**k);
}
#include
ReplyDeletevoid main()
{
int i=2,*j,**k;
j=&i;
k=&j;
{
printf("value of j= %d",*j);
}
{
printf("\n Value of K=%d\n",**k);
}
}
#include
ReplyDeletevoid main()
{
int i=2,*j,**k;
j=&i;
k=&j;
{
printf("\n value of j=%d",*j);
}
{
printf("\n value of k=%d",**k);
}
}
/* demonstration pointer to pointer */
ReplyDelete#include
void main()
{
int i=2;
int*j;
int**k;
j=&i;
k=&j;
printf("i=%d",i);
printf("j=%u",&i);
printf("k=%u",&j);
printf("i=%d",**k);
}
#include
ReplyDeletevoid main()
{
int a=11;
int *p,**k;
p=&a;
k=&p;
printf("value of a=%d \t",a);
printf("value of a=%d \t",*p);
printf("value of a=%d \t",**k);
printf("Address of a=%u \t",&a);
printf("Address of p=%u \t",&p);
printf("Address of k=%u \n",&k);
}
#include
ReplyDelete#include
void main()
{
int i=2;
int *j;
j=&i;
int **k;
k=&j;
printf("\n\t value of i=%d",*(&i));
printf("\n\t address of i=%u",&i);
printf("\n\t value of j=%u",&i);
printf("\n\t address of j=%u",&j);
printf("\n\t value of k=%u",&j);
printf("\n\t address of k=%u",&k);
printf("\n\t value of i=%d",**k);
}
/*Demonstrate the use of pointer to pointer*/
ReplyDelete#include
#include
void main()
{
int i=2;
int *j;
j=&i;
int **k;
k=&j;
printf("\n\t value of i=%d",*(&i));
printf("\n\t address of i=%u",&i);
printf("\n\t value of j=%u",&i);
printf("\n\t address of j=%u",&j);
printf("\n\t value of k=%u",&j);
printf("\n\t address of k=%u",&k);
printf("\n\t value of i=%d",**k);
}
#include
ReplyDeletevoid main()
{
int i=2;
int *j;
j=&i;
int **k;
k=&j;
printf("\n value of i=%d",i);
printf("\n address of i=%u",j);
printf("\n value of j=%u",*(&j));
printf("\n address of j=%u",k);
printf("\n value of k=%u",*(&k));
printf("\n address of k=%u",&k);
printf("\n value of i=%d",**k);
}