Memory address and Value at in c

memory address : we use '&' symbol    , and  in value at memory address: we use '*' symbol


#include <stdio.h>


int main()

    int a = 12;

    

    printf("memory address of a is %u\n" , &a);

    printf("value  at memory address of a  %u is %d\n" , &a , *(&a));

    return 0;

}

Comments

Popular posts from this blog

Factors : using C

Cross shaped pattern

Factorial ! calculation