Char type in C

in #programming27 days 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

Coin Marketplace

STEEM 0.22
TRX 0.12
JST 0.029
BTC 66132.22
ETH 3552.85
USDT 1.00
SBD 3.09