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

Written by: RajaSekhar
  • Basic C Programs-3
#include<stdio.h>
main()
{
    int x=65;
    char a='a';
    float p=6.5,q=9.12;
    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); 
}

 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
  • Simulate Bankers Algorithm for Deadlock Avoidance Using C
  • C Program to Check the Leap Year
  • C Program to Find Given Number is Perfect or Not
  • C Program for Sum of Digits of a Number
  • C Program to Print Pyramid of Numbers
  • C Program to Print Hello World
  • C Program for Sum of Digits of a Number using Recursion
  • C Program to Find Sum of Individual Digits of a Positive Integer Number
  • Find Two's Complement of a Binary Number Using C programming
  • C Program to Delete Characters from Given String
  • C Program to Check Given Number is PRIME or Not
  • C Program to Find Address Locations of Variables
  • Finding GCD and LCM of Given Numbers using C
  • C Program to find Area of a Circle
  • C Program Example for Call By Reference
  • Privacy Policy
  • Cookie Policy
© programming9.com 2025
Back to top