int to char in c

#include <stdio.h>

int main() {
    int num = 65;  // Step 1: Declare and initialize an integer variable 'num' with the value 65

    char charValue; // Step 2: Declare a character variable 'charValue'

    charValue = (char)num; // Step 3: Convert the integer 'num' to a character and assign it to 'charValue'

    printf("Integer: %d\n", num); // Step 4: Print the original integer value

    printf("Character: %c\n", charValue); // Step 5: Print the converted character value

    return 0; // Step 6: Return 0 to indicate successful execution
}