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 is call by reference in functions?

852


What is a lvalue

844


How can I call a function with an argument list built up at run time?

888


Can you define which header file to include at compile time?

774


what do u mean by Direct access files? then can u explain about Direct Access Files?

1825






Differentiate between a structure and a union.

987


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

823


What is the method to save data in stack data structure type?

832


Once I have used freopen, how can I get the original stdout (or stdin) back?

811


In a switch statement, explain what will happen if a break statement is omitted?

809


Describe the steps to insert data into a singly linked list.

808


What are the different types of control structures?

780


How do you print an address?

954


How is a structure member accessed?

789


Do you know what are the properties of union in c?

767