I came across some syntax in C that I am unfamiliar with. After declaring a variable, long ja
, the variable was then assigned to using ja=(long)(3.14)
.
long ja;
ja=(long)(3.14);
What is the significance of having (long)
, or (
variable type)
in the assignment to a variable that has already been declared?