Add some theory for Basic types section
This commit is contained in:
parent
ce6de535e5
commit
67d13f4f79
1 changed files with 22 additions and 0 deletions
22
c_modern_approach/BasicTypes/theory.c
Normal file
22
c_modern_approach/BasicTypes/theory.c
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include <stdio.h>
|
||||
|
||||
typedef int Kekus;
|
||||
|
||||
int main() {
|
||||
unsigned kek;
|
||||
kek = -9;
|
||||
printf("%du\n", kek);
|
||||
|
||||
char ch1 = 'a';
|
||||
char ch2 = 'A';
|
||||
char ch3 = '0';
|
||||
char ch4 = ' ';
|
||||
|
||||
printf("%c : %d\n", ch1, ch1);
|
||||
printf("%c : %d\n", ch2, ch2);
|
||||
printf("%c : %d\n", ch3, ch3);
|
||||
printf("%c : %d\n", ch4, ch4);
|
||||
|
||||
Kekus pips = 192;
|
||||
printf("%d\n", pips);
|
||||
}
|
Loading…
Reference in a new issue