what is the difference between
const char *p, char const *p, const char* const p
Answer Posted / singamsa
const char*p - p is pointer to the constant character i.e
value in that address location is constact
char const *p - same as above
const char* const p - p is the constant pointer which
points to the constant string, both value and address are
constants
| Is This Answer Correct ? | 115 Yes | 49 No |
Post New Answer View All Answers
What is an auto variable in c?
Suggesting that there can be 62 seconds in a minute?
Can we replace the struct function in tree syntax with a union?
In C programming, what command or code can be used to determine if a number of odd or even?
What is cohesion in c?
Can 'this' pointer by used in the constructor?
What is main () in c?
How can I recover the file name given an open stream or file descriptor?
What is void c?
How can you tell whether a program was compiled using c versus c++?
What are valid operations on pointers?
Is c dynamically typed?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What is selection sort in c?
How many parameters should a function have?