const char *
char * const
What is the differnce between the above tow?.
Answer Posted / kamaljit singh
in the first case it is pointer to a constant (i.e the
address can be changed ,where as the content/value in that
address cannot be changed).
In the later case it is a constant pointer (i.e the address
cannot be changed ,where as the content/value in that
address can be changed).
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the difference between exit() and _exit() function in c?
What is difference between stdio h and conio h?
is it possible to create your own header files?
Differentiate between functions getch() and getche().
how many errors in c explain deply
What is variables in c?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
What is the difference between array and pointer?
What is the use of volatile?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
What are the different file extensions involved when programming in C?
Difference between malloc() and calloc() function?
What is scope of variable in c?
How can I split up a string into whitespace-separated fields?