Click here to Skip to main content
15,916,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: array of zero elements Pin
George_George17-Feb-08 13:31
George_George17-Feb-08 13:31 
QuestionRe: array of zero elements [modified] Pin
Rajkumar R17-Feb-08 3:26
Rajkumar R17-Feb-08 3:26 
GeneralRe: array of zero elements Pin
George_George17-Feb-08 13:30
George_George17-Feb-08 13:30 
QuestionRe: array of zero elements Pin
kakan17-Feb-08 19:28
professionalkakan17-Feb-08 19:28 
GeneralRe: array of zero elements Pin
George_George17-Feb-08 23:03
George_George17-Feb-08 23:03 
GeneralRe: array of zero elements Pin
Hamid_RT18-Feb-08 7:31
Hamid_RT18-Feb-08 7:31 
Generalint const& Pin
George_George16-Feb-08 23:17
George_George16-Feb-08 23:17 
GeneralRe: int const& [modified] Pin
Rajkumar R17-Feb-08 2:01
Rajkumar R17-Feb-08 2:01 
type qualifiers are used to modify the property of type of the identifier.

so,

"int const x" and "const int x" are same, as const qualifier modifies the type "int" of identifier x.

the change of qualifier position has effect say,
"int const *x" and "int *const x" this is different, as const qualifier modifies the type "int" of expression (*x) for former and const qualifier modifies the type "int *" of identifier "x" for later.

and "int const *x" and "const int *x" are same, as both const qualifier modifies the type "int" of expression (*x)

similarly "int const &x" and "const int &y" are same and "int const &x" and "int & const x" are different although the later is ignored.

modified on Sunday, February 17, 2008 10:24 PM

GeneralRe: int const& Pin
George_George17-Feb-08 2:05
George_George17-Feb-08 2:05 
GeneralRe: int const& Pin
Rajkumar R17-Feb-08 2:11
Rajkumar R17-Feb-08 2:11 
GeneralRe: int const& Pin
George_George17-Feb-08 13:34
George_George17-Feb-08 13:34 
GeneralRe: int const& Pin
Rajkumar R17-Feb-08 16:23
Rajkumar R17-Feb-08 16:23 
GeneralRe: int const& Pin
George_George17-Feb-08 16:25
George_George17-Feb-08 16:25 
GeneralRe: int const& Pin
Priyanka sabharwal7-Aug-08 20:58
Priyanka sabharwal7-Aug-08 20:58 
GeneralRe: int const& Pin
George_George9-Aug-08 1:29
George_George9-Aug-08 1:29 
GeneralRe: int const& Pin
Hamid_RT18-Feb-08 7:27
Hamid_RT18-Feb-08 7:27 
GeneralRe: int const& Pin
George_George18-Feb-08 19:47
George_George18-Feb-08 19:47 
GeneralRe: int const& Pin
Hamid_RT18-Feb-08 20:08
Hamid_RT18-Feb-08 20:08 
GeneralRe: int const& Pin
George_George18-Feb-08 20:12
George_George18-Feb-08 20:12 
GeneralRe: int const& Pin
Hamid_RT18-Feb-08 20:44
Hamid_RT18-Feb-08 20:44 
GeneralRe: int const& Pin
George_George18-Feb-08 20:54
George_George18-Feb-08 20:54 
JokeRe: int const& Pin
Hamid_RT18-Feb-08 21:18
Hamid_RT18-Feb-08 21:18 
QuestionDetermining OS type: 32-bit or 64-bit, programmatically. Pin
eyalbi00716-Feb-08 21:45
eyalbi00716-Feb-08 21:45 
GeneralRe: Determining OS type: 32-bit or 64-bit, programmatically. Pin
Garth J Lancaster16-Feb-08 22:56
professionalGarth J Lancaster16-Feb-08 22:56 
GeneralRe: Determining OS type: 32-bit or 64-bit, programmatically. Pin
eyalbi00716-Feb-08 23:47
eyalbi00716-Feb-08 23:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.