Skip to content

Commit

Permalink
Different types that will be used in this book
Browse files Browse the repository at this point in the history
  • Loading branch information
codingEzio committed Feb 14, 2020
1 parent 86b1718 commit 678bfc3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions level1_acquaintance/list1.3.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include <stdio.h>

/*
Datatypes that used in this book
For the scalar types, here you are:
double %e, %f, %g, %a
bool %d (0, 1)
char %c
char const* %s
size_t %zu, %zx https://stackoverflow.com/questions/2550774/what-is-size-t-in-c
signed %d == signed int
unsigned %u, %x == unsigned int
ptrdiff_t %td https://en.cppreference.com/w/c/types/ptrdiff_t
void* %p https://www.learncpp.com/cpp-tutorial/613-void-pointers/
unsigned char %hhu, %0xhhx https://www.geeksforgeeks.org/unsigned-char-in-c-with-examples/
*/
int main(void)
{
// pass
}

0 comments on commit 678bfc3

Please sign in to comment.