[ create a new paste ] login | about

Link: http://codepad.org/CHFJoE41    [ raw code | output | fork ]

C, pasted on Apr 2:
1
2
3
4
5
6
7
8
9
10
11
#include<stdio.h>
int main()
{
    const int x=5;
    int *ptrx;
    ptrx=&x;
    *ptrx=10;
    printf("%d",x);
    return 0;

} 


Output:
1
5


Create a new paste based on this one


Comments: