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 convert Celsius to Fahrenheit
  • C Program to Find Sum of All Array Values
  • C Program to Find Address locations of Array Elements Using Pointers
  • C program to Implement BREAK Statement
  • C Program to Calculate Sum of Marks to Demonstrate Structures
  • C Program for Fibonacci Series Using for Loop
  • C Program to Find Given Number is Perfect or Not
  • C Program for Fibonacci Series using While Loop
  • Simulate Bankers Algorithm for Deadlock Avoidance Using C
  • C Program to Find Number of Characters and Words in a String
  • C program to find Sum of Digits of a Positive Integer Number
  • C Program to Find Address Locations of Variables
  • C Program to Check Whether a Number is PALINDROME or Not
  • C Program to Delete Characters from Given String
  • C Program for Multiplication Table using Goto Statement
  • Privacy Policy
  • Cookie Policy
© programming9.com 2026
Back to top