loading
open in
main.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include<stdio.h>
 
int main()
{
    int i = 12, *ip = &i;
    double d = 2.3, *dp = &d;
    char ch = 'a', *cp = &ch;
		
    printf("Value of ip = %u\n", ip);
    printf("Value of dp = %u\n", dp);
    printf("Value of cp = %u\n\n", cp);
 
    printf("Value of ip + 1 = %u\n", ip + 1);
    printf("Value of dp + 1 = %u\n", dp + 1);
    printf("Value of cp + 1 = %u\n\n", cp + 1);
 
    printf("Value of ip + 2 = %u\n", ip + 2);
    printf("Value of dp + 2 = %u\n", dp + 2);
    printf("Value of cp + 2 = %u\n", cp + 2);
 
    // signal to operating system program ran fine
    return 0;
}