Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Struts (1)
Windows (1)
XHTML (173)
Other Resources:
Why is p turning out const, instead of the characters pointed to?
I've got the declarations
typedef char *charp;
const charp p;
Why is p turning out const, instead of the characters pointed to?
✍: Guest
typedef substitutions are not purely textual.In the declaration
const charp p;
p is const for the same reason that const int i declares i as const. The typedef'ed declaration of p does not ``look inside'' the typedef to see that there is a pointer involved.
2016-01-04, 1753👍, 0💬
Popular Posts:
Can we have static indexer in C# ? No.
Is There Any XSD File to Validate Atom Feed Files? - RSS FAQs - Atom Feed Introduction and File Gene...
How To Use Subqueries in the FROM clause? - MySQL FAQs - SQL SELECT Statements with JOIN and Subquer...
What is the purpose of finalization? The purpose of finalization is to give an unreachable object th...
What is DAR (Decision Analysis and Resolution) ? Decision Analysis and Resolution is to analyze poss...