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
  • C Program to Print Addresses of Variables
  • C Program for String Comparison without using Built in Function
  • C Program for Quick Sort
  • C Program to CONCATENATE Two Strings using strcat()
  • C Program for Sum of Digits of a Number using Recursion
  • Implementation of Queue using Array in C
  • C Program to Print Hello World
  • C Program to Find Address locations of Array Elements Using Pointers
  • C program to find Sum of Digits of a Positive Integer Number
  • C program to Convert Number to Words
  • Binary Search Program in C using Recursive and Non-Recursive Methods
  • C Program Example to Initialize Structure Variable
  • C Program to Implement SJF CPU Scheduling Algorithm
  • C Program to Sort List of Strings
  • Implementation of Stack Using Array in C
  • Privacy Policy
  • Cookie Policy
© programming9.com 2025
Back to top