-
-
Save YohanesGetinet1/1d767846e12c123097e5228d10fda423 to your computer and use it in GitHub Desktop.
Day_0. Practice Code - Demonstration of Pointers
This file contains 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> | |
int main() | |
{ | |
int num = 10; | |
int * ptr; | |
/* Stores the address of num to pointer type */ | |
ptr = # | |
printf("Address of num = %d\n", &num); | |
printf("Value of num = %d\n", num); | |
printf("Address of ptr = %d\n", ....); | |
printf("Value of ptr = %d\n", ....); | |
printf("Value pointed by ptr = %d\n", ....); | |
/* Good way of learning */ | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment