diff --git a/markdown/libraries/data_types.md b/markdown/libraries/data_types.md index fd4e3c0..88a23c4 100644 --- a/markdown/libraries/data_types.md +++ b/markdown/libraries/data_types.md @@ -3,7 +3,10 @@ One of the quintessential aspect of a Programming Language are its Data Types that it provides. These are important to learn, especially in C++ because, while they might look the same, they all serve widely different purposes. -Let's begin by looking at the following screenshot +Let's begin by looking at the following screenshot: + +![image](https://github.coventry.ac.uk/storage/user/5757/files/70062a91-fe34-42d7-af67-9fb00c773fd7) + Through this, I have defined two structs that will act as the basis of the type of data type you can include; fixed data types and non-fixed. @@ -16,5 +19,10 @@ The ``u`` is a declarative that tells the compiler that in the bit count range, Whereas, ``int_t`` is a surrogate of ``uint_t`` because it's data range is much more vast at the expense of a longer compilation time, (the range being -128, 127) +Another viable method of declaring data types and variables is through macros. +C Macros are powerful because you are able to declare them like you would with any other +variable except with the added benefit of one-liners in order to make your code cleaner. +![image](https://github.coventry.ac.uk/storage/user/5757/files/265d67f1-51ed-4f8c-bf0b-db311245ee31) +![image](https://github.coventry.ac.uk/storage/user/5757/files/76564f11-c0a1-4e0a-b22b-52b3017812c3)