+1 vote
in Class 12 by kratos

Write statement/declaration for the following:

(i) A reference to a floating point variable.

(ii) To set grant to 10 if speed is more than 68, and to 0 otherwise (usine conditional operator)

1 Answer

+2 votes
by kratos
 
Best answer

(i) float f,fp;

fp=&f;

(ii) grant= (speed>68) ? 10:68;

...