Sunday 15 September 2013

c - Difference in variable value inside and outside a function -


I wrote a program in which I found the area of ​​the cylinder with the function area returns type and parameters Without it. Answer was returned to the main function. However, I get different output in the main and found a different output in the field . The decimal code is being replaced by 0 in the main function. Why is it like this? Enter image details here

from float

No comments:

Post a Comment