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 is difference between stdio h and conio h?

888


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

684


What is the purpose of 'register' keyword?

691


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1907


What is an identifier?

628






an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

812


What is %g in c?

620


Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..

646


Difference between goto, long jmp() and setjmp()?

710


Define circular linked list.

571


The file stdio.h, what does it contain?

667


What is function what are the types of function?

560


write a program to copy the string using switch case?

2401


What is the difference between malloc() and calloc() function in c language?

604


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

1582