Hi
I have a question , do we use data types eg "float", "int" and "double"
only when we do arithmatic operation or we can even use them when we want to specify simply age,bus number and etc in a program?
Hi
I have a question , do we use data types eg "float", "int" and "double"
only when we do arithmatic operation or we can even use them when we want to specify simply age,bus number and etc in a program?
No.
Generally speaking, one would expect to be able to do arithmetic operations on a user-defined UnboundedInteger type.
You use whatever makes sense according to what data you need to store or manipulate.
Perhaps you'd be better off asking about a particular scenario rather than something general.
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"