C Program : Explicit Conversion or Type Casting

 #include <stdio.h>

int main() { double doubleValue = 123.456; int intValue; // Explicitly convert a double to an int intValue = (int)doubleValue; printf("Original double value: %.3lf\n", doubleValue); printf("Explicitly casted int value: %d\n", intValue); return 0; }

Comments

Popular posts from this blog

Video Formats

Where video editing is used

File saving and folder management