what is the difference between
const char *p, char const *p, const char* const p

Answer Posted / bhargav

Const char *P ->
declares a pointer through which you may be able to access
a char but you can not change it through the said pointer.
But the pointer itself can be changed.

char const *p ->
in this the value is constant

const char* const p ->
both address and value are constants

Is This Answer Correct ?    13 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are integer variable, floating-point variable and character variable?

834


What are qualifiers and modifiers c?

718


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

1741


What is pass by reference in c?

831


What are the different types of endless loops?

808






write a programming in c to find the sum of all elements in an array through function.

1899


Can you please explain the difference between malloc() and calloc() function?

833


What is the value of c?

754


How does normalization of huge pointer works?

857


What does c mean before a date?

825


What is a shell structure examples?

781


What is the right type to use for boolean values in c? Is there a standard type?

770


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

2774


In C programming, what command or code can be used to determine if a number of odd or even?

803


Is c object oriented?

703