Skip to content

Instantly share code, notes, and snippets.

@anonur
Last active April 4, 2019 19:15
Show Gist options
  • Save anonur/9eabecae8f5ce91702708af2116a8344 to your computer and use it in GitHub Desktop.
Save anonur/9eabecae8f5ce91702708af2116a8344 to your computer and use it in GitHub Desktop.
Shows addresses of entered numbers
#include<stdio.h>
#include<conio.h>
int main()
{
int val[8] = {25,69,83,23,96,13,41,90};
for(int i = 0; i <= 7; i++)
{
printf("\nval[%d]: value %d and address %p",i,val[i],&val[i]);
}
getch();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment