-
-
Save Impermenance-2021/ea9238e1e8263bf997519357835af55b 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", ....); | |
return 0; | |
} | |
//Challenge - Fill out the missing places in the above code and solve it. Hint - *ptr, ptr and &ptr |
20BTRCM030- Yogesh Kumar Shah
20BTRCI034
YOUSIF ELAMIN
USN - Ashwini Mathur
20BTRCI006-PAVAN KUMAR
20BTRCI024 - Shaik.majeed
20BTRCM029 - Pratishtha Shah
20BTRCI023-YARUL JAIN
20BTRCI033
20BTRCI021 - Vikash Gupta
Hi
20BTRCI012-Keshav Gupta
20BTRCI002 - A. Mangalam Kallo
20btrcm004-kamisetty Jayesh
Those who like the challenge #Add a star to gist, so I can share with other students.
20BTRCI018-SURYA.S
20BTRCM001 - ADITYA ABHINAV
20BTRCI027-HARNISH.M.R
20BTRCM017_Ahmad Khalid Mayar
20BTRCM021- MD. TANVIR HOSSAIN
20BTRCM021-MD. TANVIR HOSSAIN
20BTRCI004-Aryan Aggarwal
20BTRCI008___Maria Presanna
20BTRCI005- AYUSH CTIS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
20BTRCI015-Michelle Mathews