Discussion: variable declaration
Afficher un message
Vieux 21/02/2008, 20h21   #2
Victor Bazarov
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: variable declaration

Rahul wrote:
> I had the following declaration and i expected the compiler to give
> an error, but it didn't, how does it interpret the declaration?
>
> const * int ptr;


You should probably ask the compiler or its developers. The '*'
symbol cannot be followed by 'int'. Could be a bug in the compiler.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


  Réponse avec citation
 
Page generated in 0,05206 seconds with 9 queries