#include <stdio.h>

#include <stdio.h>  // Include the standard IO library for printf
int main() {
    int my_int;
    char my_char[1];
    int size_my_int;
    int size_my_char;

    my_int = 42;
    my_char[0] = 42;  // Use a character instead of an integer
    size_my_int = sizeof(my_int);
    size_my_char = sizeof(my_char);

    printf("my_int contains .. %d\n", my_int);
    printf("my_char contains .. %c\n", my_char[0]);  // Access the element in my_char
    printf("my_char ends with .. %d\n", my_char[1]);  // Access the element in my_char
    printf("Size of my_int: %d bytes\n", size_my_int);
    printf("Size of my_char: %d bytes\n", size_my_char);

    printf("Yah!\n");
    return 0;
}

Embed on website

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