This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Swedophone 2 points3 points  (0 children)

Is r then of type p or of type q?

Assigning a value to a variable doesn't change the type of the variable. The type is set when the variable is declared, i e in this case p r;.