PPS Practical 54
- Aim: Write a program to print address of variable using pointer.
- Code:
//For turbo C++ remove below comments #include <stdio.h> //#include<conio.h> void main() { // clrscr(); int a = 3,*pt=&a; printf("Value of a : %d",a); printf("\nAddress of a : %d",&a); printf("\nAddress of a using pointer: %d",pt); // getch(); }
- Output:
Comments
Post a Comment