diff options
author | Oskar <[email protected]> | 2024-07-30 17:01:04 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-07-30 17:01:04 +0200 |
commit | 642720852ec17b68d8d2bbad300202604c0bb63d (patch) | |
tree | 5cdb770d6a871f90a3511bd4b885b6499cffd534 /2p21.cpp | |
parent | 7aac5c6dc29079971a5c964762cdb294782b14d5 (diff) |
more exercises
Diffstat (limited to '2p21.cpp')
-rw-r--r-- | 2p21.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/2p21.cpp b/2p21.cpp new file mode 100644 index 0000000..746ce34 --- /dev/null +++ b/2p21.cpp @@ -0,0 +1,20 @@ +#include <iostream> +#include "sales_item.hpp" + +/* + * + * 2.21 + * + * + */ + +int main () { + + int i = 0; + //double *dp = &i; // Invalid + //int *ip = i; // Invalid + int *p = &i; + std::cout << i << " " << p << std::endl; + + return 0; +} |