const pointer and const reference 
Author Message
 const pointer and const reference

what is difference between const pointer and const referece?
thank all.


Mon, 14 Feb 2005 12:38:04 GMT  
 const pointer and const reference

Quote:
> what is difference between const pointer and const referece?
> thank all.

There is no such thing as a "reference" in C. Therefore your question is
meaningless.

--

| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste       W++ B OP+                     |
\----------------------------------------- Finland rules! ------------/
"C++ looks like line noise."
   - Fred L. Baube III



Mon, 14 Feb 2005 12:56:18 GMT  
 const pointer and const reference

Quote:
>what is difference between const pointer and const referece?

const pointers exist in C.

References, const or not, do not exist in C.

                                                Gordon L. Burditt



Mon, 14 Feb 2005 12:58:40 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Type Casting Const Pointers to non const pointers

2. Help: inline char const* const& max(char const* const &a, char const* const &b)

3. Array of const pointers to const variable.

4. problem with array of const pointers to const data

5. const method and non-const pointer

6. const pointer to const data problem

7. const arguments or const member methods

8. typedef int COMPARE(const void *, const void *);

9. modify const-qual obj via const-qual lvalue?

10. Why not static const char * const __func__ ?

11. meaning of const char *const ?

12. unions with const/not const?

 

 
Powered by phpBB® Forum Software