View the byte size of the character in c

ht‮ww//:spt‬w.lautturi.com
View the byte size of the character in c
//get the size of character in c language

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

int main()
{
      char a = 'a';
  	printf("Size of char : %d\n",sizeof(a)); // 1
  	printf("Size of char : %d\n",sizeof('a')); // 4
    return 0;
}
Created Time:2017-08-28 21:22:59  Author:lautturi