Assign address to a pointer and dereference the point value - C Pointer

C examples for Pointer:Pointer Variable

Description

Assign address to a pointer and dereference the point value

Demo Code

#include <stdio.h>

int main (void)
{
    int count = 10, x;
    int *int_pointer;

    int_pointer = &count;
    x = * int_pointer;

    printf ("count = %i, x = %i\n", count, x);

    return 0;/*from  w w  w. j av a  2s .c  om*/
}

Result


Related Tutorials