diff options
author | Oskar <[email protected]> | 2024-08-18 21:02:35 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-08-18 21:02:35 +0200 |
commit | 19903ae3536255dfa2778846275267605cee9f7e (patch) | |
tree | 94f9ecb62c1d02b5c00f4fc9c760ec4ed4a10105 /4p15.cpp | |
parent | 3d0a78eaaafff660cd04adf23a6bec1721187abf (diff) |
more exercises, one unfinished
Diffstat (limited to '4p15.cpp')
-rw-r--r-- | 4p15.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/4p15.cpp b/4p15.cpp new file mode 100644 index 0000000..7ac66d5 --- /dev/null +++ b/4p15.cpp @@ -0,0 +1,26 @@ +#include <iostream> + +/* + * + * 4.15 + * + * + */ + +int main () { + + double dval; + int ival; + int *pi; + /* + ival = 0; + dval = 0; + pi = 0; + + I don't really see a reason not to do it this way but both of these examples work + */ + ival = dval = 0; + pi = 0; + std::cout << dval << ival << pi << std::endl; + return 0; +} |