wats the diference btwen constant pointer and pointer to a
constant.pls give examples.

Answer Posted / satish

char * const p; ->it is const pointer to char
const char * p; ->it is pointer to const char

Is This Answer Correct ?    29 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of macro formats?

600


Difference between Function to pointer and pointer to function

625


what is the significance of static storage class specifier?

1657


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

727


What is break statement?

629






Explain c preprocessor?

678


How would you rename a function in C?

614


What math functions are available for integers? For floating point?

616


What is #define in c?

615


can anyone please tell about the nested interrupts?

1674


What do you mean by command line argument?

638


What is restrict keyword in c?

638


What is string in c language?

619


Explain what is the benefit of using #define to declare a constant?

604


Write a program to find the biggest number of three numbers in c?

588