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

What are variables and it what way is it different from constants?

782


What are structural members?

566


write a c program in such a way that if we enter the today date the output should be next day's date.

1677


Explain what are header files and explain what are its uses in c programming?

623


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

657






What is console in c language?

601


What is bubble sort in c?

631


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

2238


What is the use of clrscr?

591


How do you use a 'Local Block'?

716


what is event driven software and what is procedural driven software?

2005


What is c token?

603


Explain null pointer.

615


Explain the difference between #include "..." And #include <...> In c?

623


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1813