Char type in C

in programming •  6 months ago 

The "smallest" type in the C language is the char type. You can use it to create variables with a size of no more than one byte.

#include <stdio.h>
#include <stdlib.h>

int main ()
{
    char c = 7;

    printf ("Our variable of type char is equal %d\n", c);
    printf ("Size of char type variables is %lld bytes\n\n", sizeof (char));

    return 0;
}

Posted using SteemPro Mobile

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!