minoss
Junior Member level 1
Hello
I've a question to the C specialists. I can't find an answer in any book.
For example: If i have a long int variable named A and I make a calculation. A = x*y; And the variables x and y are float types, the variable A will be automatically converted to float.
My question is , how long is A a float variable ??
For the whole program time , or does it fall back to long int if it is possible ?
Regards
Michael
I've a question to the C specialists. I can't find an answer in any book.
For example: If i have a long int variable named A and I make a calculation. A = x*y; And the variables x and y are float types, the variable A will be automatically converted to float.
My question is , how long is A a float variable ??
For the whole program time , or does it fall back to long int if it is possible ?
Regards
Michael