Skip to content
Permalink
Browse files
Update data_types.md
  • Loading branch information
clarkh9 committed Jan 7, 2023
1 parent 373ee1d commit 826b62f7d9514d471f05224c6ff5e85ce4e5db48
Showing 1 changed file with 9 additions and 1 deletion.
@@ -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)

0 comments on commit 826b62f

Please sign in to comment.