POINTERS

 POINTERS 

INPUT

#include <stdio.h>

int main()
{
    int a = 23;
    int *ptra = &a;
int *ptrB = NULL;
    printf("The address of the pointer is %x\n ", &ptra);
    printf("The address of the a is %x\n ", &a);
    printf("The value of the a is %d\n ", *ptra);
    printf("The value of the a is %d\n "a); 
printf("The value of the POINTER TO B is %p\n "ptrB);

    return 0;
}

OUTPUT

The address of the pointer is 61ff18 The address of the a is 61ff1c The value of the a is 23 The value of the a is 23
The value of the POINTER TO B is 00000000




 

Comments