How to define a new type: Byte based on an existing type in C

1 Answer

0 votes
#include <stdio.h>
 
typedef unsigned char Byte;

int main(void)
{
    Byte ch = 'a';
   
    printf("%c", ch);
     
    return 0;
}
   
    
/*
run:
    
a
    
*/

 



answered Aug 12, 2017 by avibootz
...