-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpointers.c
More file actions
36 lines (32 loc) · 842 Bytes
/
pointers.c
File metadata and controls
36 lines (32 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* =====================================================================================
*
* Filename: pointers.c
*
* Description:
*
* Version: 1.0
* Created: 19-Oct-21 13:52:49
* Revision: none
* Compiler: gcc
*
* Author: Jwtiyar Nariman (), jwtiyar@gmail.com
* Organization:
*
* =====================================================================================
*/
#include <stdlib.h>
#include <stdio.h>
int main(){
int age =30;
int *pAge = &age;
double gpa = 3.4;
double *pGpa = &gpa;
char grade = 'a';
char *pgrade = &grade;
printf("%p\n", &age);
printf("%d\n", *&age);
printf("%p\n", *&*&age); /* bem sheweye detwany byangorret dawakt*/
printf("%d\n", *pAge); /* eme pey delen dereferrence bo ewey jmare seretayyeke bgerreneetewe*/
return 0;
}