const char *
char * const
What is the differnce between the above tow?.
Answer Posted / vignesh1988i
as for as i know.....
1) const char * :
here the character pointer is a constant which can point to
oly one character type memory location throught the program.
2) char * const :
hrere the pointer is not a constant , the character variable
used after it will be constant.. in that variable we cant
make any changes... but in pointer we can make
thank you
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why c language is called c?
How are Structure passing and returning implemented by the complier?
what is the role you expect in software industry?
How can I read a binary data file properly?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
What are the two types of functions in c?
How can I split up a string into whitespace-separated fields?
Explain how do you convert strings to numbers in c?
Explain how can type-insensitive macros be created?
How do c compilers work?
What was noalias and what ever happened to it?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What are the types of pointers in c?
Can you assign a different address to an array tag?