What does the symbol * signifies?

Skill/Topic: Variables and Pointers
A) Tells the computer that you are declaring a pointer
B) Tells the computer that you are declaring a variable
C) Both a) and b)
D) None of the above
Explanation: The symbol * Tells the computer that you are declaring a pointer

Showing Answers 1 - 7 of 7 Answers

samiksc

  • Jan 19th, 2006
 

(A) declaring pointer.

Actually it depends on context. In a statement like int *ptr; the '*' tells that you are declaring a pointer.

In a statement like int i = *ptr; it tells that you want to assign value pointed to by ptr to variable i.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions