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


Please Help Members By Posting Answers For Below Questions

Explain what’s a signal? Explain what do I use signals for?

594


What is 2c dna?

587


Can we use visual studio for c?

534


What are pointers?

619


Is c easy to learn?

548






what do you mean by inline function in C?

603


Why malloc is faster than calloc?

572


What is the general form of a C program?

587


What is #define in c?

605


Explain can the sizeof operator be used to tell the size of an array passed to a function?

579


How are pointers declared in c?

584


code for replace tabs with equivalent number of blanks

1624


Explain how do you determine the length of a string value that was stored in a variable?

653


What is non linear data structure in c?

558


What is the use of a semicolon (;) at the end of every program statement?

748