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
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
What is a newline escape sequence?
What is the size of array float a(10)?
What is %d called in c?
C program to find all possible outcomes of a dice?
what are bit fields? What is the use of bit fields in a structure declaration?
In c programming language, how many parameters can be passed to a function ?
What are register variables? What are the advantage of using register variables?
Difference between macros and inline functions? Can a function be forced as inline?
Why do we use int main instead of void main in c?
How can you invoke another program from within a C program?
can anyone please tell about the nested interrupts?
How can I convert a number to a string?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
What is the difference between strcpy() and memcpy() function in c programming?