Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

address location of any number is same

$
0
0
i was learning about address location so i write a example but this programm showing same adress location for aal number, is it normal or the code is wrong?

#include<stdio.h>
#include<conio.h>
main()
{
      int i,j;
      printf("\t\t To print the address location of any value");
      for (j=1;j<=2;j++)
      {printf ("\n\n\nEnter the no. for address location : ");
      scanf("%d",&i);
      printf ("\n\nthe address of %d is : %u",i,&i);}
      getch();
      }



find attachment for program

Posted Image

Viewing all articles
Browse latest Browse all 51036

Trending Articles