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

Answer Posted / jose j pothoor

I see ur explanation...then what would be the answer of
below program

void main()
{
int const *p=5;
printf("%d",++(*p));
}
a)5
b)6
c) Run time error
d) Compiler error

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different properties of variable number of arguments?

659


main() { printf("hello"); fork(); }

693


What are all different types of pointers in c?

572


swap 2 numbers without using third variable?

656


Explain how can I read and write comma-delimited text?

648






i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

1836


What is the most efficient way to count the number of bits which are set in an integer?

587


What is data type long in c?

621


If I have a char * variable pointing to the name of a function ..

648


What is the difference between pure virtual function and virtual function?

645


What is calloc in c?

657


Where are some collections of useful code fragments and examples?

712


What is a double c?

588


What is getch () for?

672


What is the benefit of using const for declaring constants?

581