Challenge:
Objective:Task: Read a target index from stdin and access that integer using pointer arithmetic. Notice how byte offset vs type-scaled offset corrupts memory.
Target: Correctly access index 2 (value 30) without multiplying by sizeof(int)
main.c
❯_Execution Output Console
Click "▶ Compile & Run" to execute this code in the real compiler toolchain...
⌨️ Standard Input (stdin):
⚡Faultline AI Code Doctor
Click "⚡ Diagnose with AI Doctor" to pinpoint the exact line of mistake and generate a surgical modification.