programming9
  • Flowcharts
  • Programs
      • Back
      • C Programs
      • C++ Programs
      • Java Programs
      • Python Codes
      • HTML Codes
      • Java Script Codes
      • SQL Codes
  • Tutorials
      • Back
      • Java Tutorials
      • Competitive Programming
      • Python Tutorials
      • C Programming
  • Blog
  • Login

C Program to Print Addresses of Variables

Details
Written by: RajaSekhar
Category: C Programs
  • Basic C Programs-3
#include<stdio.h>
main()
{
    int x=65;
    char a='a';
    float p=6.5,q=9.12;
    //clrscr();

    printf("%c is Stored at Address %u\n",a,&a);
    printf("%d is Stored at Address %u\n",x,&x);
    printf("%f is Stored at Address %u\n",p,&p);
    printf("%f is Stored at Address %u\n",q,&q);
    getch();
}

 OUTPUT:

 

a is Stored at Address 2686747
65 is Stored at Address 2686748
6.500000 is Stored at Address 2686740
9.120000 is Stored at Address 2686736
Previous article: C Program to Print Elements of Array Using Pointers Prev Next article: Simulate Bankers Algorithm for Deadlock Avoidance Using C Next
  • C Program to Sort List of Strings
  • C program to Implement BREAK Statement
  • C Program to Find Roots of a Quadratic Equation
  • C Program to Find Factorial of a Number using Functions
  • C Program to Print Pyramid of Numbers
  • C Program to Find Prime Factors of a Given Positive Number
  • C Program for Swapping of Two Numbers Without Using Third Variable
  • C Program to Print Elements of Array Using Pointers
  • Merge Sort Program in C
  • C program to find Sum of Digits of a Positive Integer Number
  • C Program to Find Nth Fibonacci Number Using Recursion
  • C Program to Implement Call By Value using Functions
  • C Program for Matrix Multiplication
  • C Program to Find Area of a Square
  • C Program to find Reverse of a Number
  • Privacy Policy
  • Cookie Policy
© programming9.com 2026
Back to top