What does the dot preceeding an operator mean in C? -
i'm not familiar c , i'm trying translate piece of code found language. part, it's been rather intuitive encountered bit of code in subtraction operator preceeded fullstop, this:
double c; c = 1.-exp(a/b)
i searched can find dot operator standard property access of object. i've encountered '.-' operator in other langauges denoted element-wise operation on array, in code none of elements arrays; of a, b , c doubles.
it instructs compiler treat literal number floating-point number. 1. = 1.0
- in case
c = 1.-exp(a/b)
equivalentc = 1.0 -exp(a/b)
Comments
Post a Comment