[ create a new paste ] login | about

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

C, pasted on Jun 29:
1
2
3
4
5
6
7
8
9
10
#include<stdio.h>
 int main(void){
 int *p;
 *p = 'age';
 *p = 'name';
 age=5;
 name= 'vishal';
 printf("the value is:%d,%c"age, width);
 return 0;
 }


Output:
1
2
3
4
5
6
7
8
9
Line 6: warning: multi-character character constant
Line 6: warning: multi-character character constant
In function 'main':
Line 6: error: 'age' undeclared (first use in this function)
Line 6: error: (Each undeclared identifier is reported only once
Line 6: error: for each function it appears in.)
Line 7: error: 'name' undeclared (first use in this function)
Line 7: warning: character constant too long for its type
Line 8: error: expected ')' before 'age'


Create a new paste based on this one


Comments: