Last active
April 4, 2019 19:15
-
-
Save anonur/9eabecae8f5ce91702708af2116a8344 to your computer and use it in GitHub Desktop.
Shows addresses of entered numbers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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