find the output of following program
Home
/
Computer Science
/
find the output of following program
find the output of following program
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Verified answer
Output of given C++ program:a is of type integer. b is a pointer to the integer variable "a". Or, b is the address in memory of variable "a".
c gives a pointer, where a pointer to the location of variable "a" is stored.
d gives a point where a point to the location of pointer to the variable "a" is stored.
a= 12.
a + *b = 12 + 12 = 24
**c = a = 12.
***d = a = 12.
So the output of the given program will be: printed on two lines.
24
24