Problem with pointers
        Posted  
        
            by noname
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by noname
        
        
        
        Published on 2010-05-06T09:19:52Z
        Indexed on 
            2010/05/06
            9:28 UTC
        
        
        Read the original article
        Hit count: 322
        
OK, i have a strange problem. I have this piece of code:
int *p;
int test;
p=&test;
In Visual C++ express, in my exsisting project, I get this error:
missing type specifier - int assumed.
'p' : 'int' differs in levels of indirection from 'char *'
'initializing' : cannot convert from 'char *' to 'int'
But when i create new project, same code is fine. Whats the problem please?
© Stack Overflow or respective owner