@Nidhi - I guess thats correct.. but am still not 100% sure about how the explanation goes.. Actually printf() is a variable argument function and so the acceptance of a value of a data type depends on the way it is defined in the library.. and since %f if encountered in the string must be replaced by a float value (as defined since it can be anything - VARIABLE) so the function (as we see the way it works) expects a float value..
-- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
