Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (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, 1566👍, 0💬
Popular Posts:
Rachel opened her math book and found that the sum of the facing pages was 245. What pages did she o...
What exactly happens when ASPX page is requested from Browser? Note: - Here the interviewer is expec...
How To Define a Data Source Name (DSN) in ODBC Manager? - Oracle DBA FAQ - ODBC Drivers, DSN Configu...
What is shadowing ? When two elements in a program have same name, one of them can hide and shadow t...
What is the sequence of UML diagrams in project? First let me say some fact about this question, you...