Logo 
Search:

C++ Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C++ ProgrammingRSS Feeds

Which of the following statement(s) is true according to the following statement? p=*ptr;

  Shared By: Bethany Hughes    Date: Jan 13    Category: C++ Programming    Views: 2380

Answer:

Options

a) p must be a pointer variable
b) The value of ptr is assigned to the variable p
c) The address of the pointer ptr is assigned to the variable p
d) The value of the variable that the pointer ptr is pointing to is assigned to the variable p

Answer : d) The value of the variable that the pointer ptr is pointing to is assigned to the variable p

Share: 
 



Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: