1.

float area(const float pi = 3.1415, const float float r) { r = 10; return pi*r; }Is there any problem? If yes what is it?

Answer»

There is an error. The error is ‘r’ is a constant V must be initialised and cannot be changed during execution.



Discussion

No Comment Found

Related InterviewSolutions