[ create a new paste ] login | about

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

C, pasted on Sep 13:
1
2
3
4
5
6
7
8
9
10
11
12
int main(int argc, char *argv[])
{
    int age = 47;
    int *ptrage = NULL;
    
    *ptrage = &age;
  
 
  printf ("Vous avez %d ans et j'ai stocké votre age au no %d\n", age, atoi(*age));
       
  return 0;
}


Output:
1
2
3
In function 'main':
Line 6: warning: assignment makes integer from pointer without a cast
Line 9: error: invalid type argument of 'unary *'


Create a new paste based on this one


Comments: