Using Pointer to Pointer - C Programming
C Program to illustrate pointer to pointer concept.
/* C Program using pointer to pointer */
#include<stdio.h>
main ()
{
int a=22; /* Local definitions */
int *b; /* *b is a pointer variable */
int **c; /* **c is a pointer to another pointer */
b=&a; /* '&a' is a address variable */
c=&b;
printf ("\n Value of a is %d", a);
printf ("\n Value of a is %d", *(&a));
printf ("\n Value of a is %d", *b);
printf ("\n Value of a is %d", **c);
printf ("\n Value of b and address of a=%u", b);
printf("\n Value of c and address of b = %u", c);
printf ("\n Address of a=%u", &a);
printf ("\n Address of b=%u", &b);
printf ("\n Address of a=%u", *c);
printf ("\n Address of b=%u", &b);
printf ("\n Address of b=%u", c);
printf ("\n Address of c=%u", &c);
} /* main */
OUTPUT
Value of a is 22 Value of a=22
Value of a is 22 Value of a=22
Value of b and address of a=2000
Value of c and address of b=4000
Address of a=2000 Address of b=4000
Address of a=2000 Address of b=4000
Address of b=4000 Address of c=6000
Computer Programming C Laboratory: Pointers C Programs : Tag: C Programming : - C Program to illustrate pointer to pointer concept
Computer Programming C Laboratory
CS25C01 1st Semester EEE, ECE, CSE, CSE(CY), AIDS, IT practical Laboratory Manual | 2025 Regulation | 1st Semester Laboratory 2025 Regulation
English Essentials I
EN25C01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
தமிழர் மரபு - Heritage of Tamils
UC25H01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
Applied Calculus
MA25C01 Maths 1 M1 - 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
Applied Physics I
PH25C01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
Applied Chemistry I
CY25C01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
Makerspace
ME25C04 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
Computer Programming C
CS25C01 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
Computer Programming Python
CS25C02 1st Semester | 2025 Regulation | 1st Semester 2025 Regulation
Fundamentals of Electrical and Electronics Engineering
EE25C03 1st Semester EEE Depart | 2025 Regulation | 1st Semester 2025 Regulation
Introduction to Mechanical Engineering
ME25C03 1st Semester Mechanical Dept | 2025 Regulation | 1st Semester 2025 Regulation
Introduction to Civil Engineering
CE25C01 1st Semester Civil, Agri Departments | 2025 Regulation | 1st Semester 2025 Regulation
Essentials of Computing
CS25C03 1st Semester - AIDS, CSE, CSE(CY), IT Department | 2025 Regulation | 1st Semester 2025 Regulation
Applied Physics I Laboratory
PH25C01 1st Semester practical Laboratory Manual | 2025 Regulation | 1st Semester Laboratory 2025 Regulation
Applied Chemistry I Laboratory
CY25C01 1st Semester practical Laboratory Manual | 2025 Regulation | 1st Semester Laboratory 2025 Regulation
Computer Programming C Laboratory
CS25C01 1st Semester EEE, ECE, CSE, CSE(CY), AIDS, IT practical Laboratory Manual | 2025 Regulation | 1st Semester Laboratory 2025 Regulation
Computer Programming Python Laboratory
CS25C02 1st Semester practical Laboratory Manual | 2025 Regulation | 1st Semester Laboratory 2025 Regulation
Engineering Drawing
ME25C01 EEE, Mech, Agri, EEE Depts | 2025 Regulation | 2nd Semester 2025 Regulation
Basic Electronics and Electrical Engineering
EE25C04 1st Semester ECE Dept | 2025 Regulation | 1st Semester 2025 Regulation
Essentials of Computing - Laboratory
CS25C03 1st Semester AIDS, CSE, CSE(CY), IT Depts | practical Laboratory Manual | 2025 Regulation | 1st Semester 2025 Regulation