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 associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What are the 4 types of programming language?
What is the difference between declaring a variable and defining a variable?
How do you declare a variable that will hold string values?
What is nested structure in c?
Which is better pointer or array?
Who invented b language?
What does sizeof int return?
What is the advantage of an array over individual variables?
How many loops are there in c?
What are types of functions?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Mention four important string handling functions in c languages .
Can we declare variables anywhere in c?