Skip to content
Closed
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
4 changes: 2 additions & 2 deletions hello_world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ int main() {
// int x;
// cout << x << endl;

// int *p = nullptr;
int *p = nullptr;

// cout << *p << endl;
cout << *p << endl;

Comment on lines +8 to 11
Copy link

Copilot AI Jun 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dereferencing a null pointer (p is assigned nullptr) will result in undefined behavior. Consider adding a null check or initializing p with a valid memory address.

Copilot uses AI. Check for mistakes.
cout << "Hello World" << endl;

Expand Down
Loading