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
11 changes: 11 additions & 0 deletions hello_world.mm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Import the Foundation framework (used for NSString and NSLog)
#import <Foundation/Foundation.h>

// The main function — entry point of the program
int main(int argc, const char * argv[]) {
@autoreleasepool { // Memory management block for Objective-C objects
// Print "Hello, World!" to the console
NSLog(@"Hello, World!");
}
return 0; // Indicate successful program termination
}