Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » BeginnersRSS Feeds

Program that illustrates the use of pointers

Posted By: Viheke Fischer     Category: C Programming     Views: 2133

Write a program that illustrates the use of pointers.

Code for Program that illustrates the use of pointers in C Programming

#include <stdio.h>
main ()
{
    int i;        //Aint * ia;        //B
    i = 10;        //C
    ia = &i;        //D

     printf (“ The address of i is %8u \n”, ia);        //E
     printf (“ The value at that location is %d\n”, i);    //F
    printf (“ The value at that location is %d\n”, *ia);    //G
  *ia = 50;                    //H
     printf (“The value of i is %d\n”, i);            //I
}
  
Share: 


Didn't find what you were looking for? Find more on Program that illustrates the use of pointers Or get search suggestion and latest updates.

Viheke Fischer
Viheke Fischer author of Program that illustrates the use of pointers is from Frankfurt, Germany.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!