void main()
{
char *cptr = 072000;
long *lptr = 072000;
cptr++;
lptr++;
prmtf(" %x %x", cptr, lptr);
} Will it execute or not?
Not Excute.
Compile with VC7 results following errors:
error C2440: 'initializing' : cannot convert from 'int' to 'char *'
error C2440: 'initializing' : cannot convert from 'int' to 'long *'
Not Excute if it is C++, but Excute in C. The printout: 2001 2004
{
char *cptr = 072000;
long *lptr = 072000;
cptr++;
lptr++;
prmtf(" %x %x", cptr, lptr);
} Will it execute or not?
Not Excute.
Compile with VC7 results following errors:
error C2440: 'initializing' : cannot convert from 'int' to 'char *'
error C2440: 'initializing' : cannot convert from 'int' to 'long *'
Not Excute if it is C++, but Excute in C. The printout: 2001 2004
0 comments:
Post a Comment