Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion concepts/pointers/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ openStarGate(dialedAddress);
Pointer arithmetic in C++ can easily lead to __undefined behavior__ if not handled carefully.
Undefined behavior can manifest in unexpected program outcomes, crashes, or even security vulnerabilities.
One infamous example of the consequences of undefined behavior occurred in the [explosion of the Ariane 5 rocket][ariane-flight-v88] in 1996, where a software exception caused by the conversion of a 64-bit floating-point number to a 16-bit signed integer led to a catastrophic failure.

[ariane-flight-v88]: https://en.wikipedia.org/wiki/Ariane_flight_V88
~~~~

## Accessing member variables
Expand Down Expand Up @@ -131,5 +133,4 @@ It is your responsibility to detect these cases and ensure those pointers are su
In older code, you might encounter two alternatives to `nullptr`.
Firstly, the literal `0` is specifically interpreted as a null value for pointers, though it's the only scenario where an integral literal can be assigned to a pointer.
Secondly, the `preprocessor macro` `NULL`, inherited from C and defined in the `<cstddef>` header, is another representation of a null pointer, though its usage is less common in modern C++ code.
[ariane-flight-v88]: https://en.wikipedia.org/wiki/Ariane_flight_V88
~~~~
2 changes: 2 additions & 0 deletions concepts/pointers/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ openStarGate(dialedAddress);
Pointer arithmetic in C++ can easily lead to __undefined behavior__ if not handled carefully.
Undefined behavior can manifest in unexpected program outcomes, crashes, or even security vulnerabilities.
One infamous example of the consequences of undefined behavior occurred in the [explosion of the Ariane 5 rocket][ariane-flight-v88] in 1996, where a software exception caused by the conversion of a 64-bit floating-point number to a 16-bit signed integer led to a catastrophic failure.

[ariane-flight-v88]: https://en.wikipedia.org/wiki/Ariane_flight_V88
~~~~

## Accessing member variables
Expand Down
2 changes: 2 additions & 0 deletions exercises/concept/speedywagon/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ openStarGate(dialedAddress);
Pointer arithmetic in C++ can easily lead to __undefined behavior__ if not handled carefully.
Undefined behavior can manifest in unexpected program outcomes, crashes, or even security vulnerabilities.
One infamous example of the consequences of undefined behavior occurred in the [explosion of the Ariane 5 rocket][ariane-flight-v88] in 1996, where a software exception caused by the conversion of a 64-bit floating-point number to a 16-bit signed integer led to a catastrophic failure.

[ariane-flight-v88]: https://en.wikipedia.org/wiki/Ariane_flight_V88
~~~~

## Accessing member variables
Expand Down