Assigning values to a pointer - 2


#include <stdio.h>
int main (void)
{
    int *p, q;
    p=&q;
    *p=200;
    printf("%d\n", q);
    return 0;
}



The output is given below:

200

0 comments:

Post a Comment