/*
Typecasting in C allows you to convert a value of one data type to another data type.
Here's an example program that demonstrates typecasting:
*/

#include <stdio.h>

int main() {
    double x = 3.14159;
    int y = (int) x; // Typecasting x from double to int

    printf("Double: %f\n", x);
    printf("Int: %d\n", y);

    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: