summaryrefslogtreecommitdiff
path: root/ROMs/hello_c.c
diff options
context:
space:
mode:
authorMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-09 00:16:57 +1000
committerMelodi <62381002+Melodi17@users.noreply.github.com>2025-08-09 00:16:57 +1000
commitd36d51429d604f0ab3b2076c4c05e28ebf9b52c5 (patch)
tree9a3755684359aa041bf391f4ef5d3f30837a2271 /ROMs/hello_c.c
parente62b66dd08ca445d1f7e5b802a503ad3ec83b2df (diff)
updated block syntax and removed body grammar, fixed issue with if requiring an else branch
Diffstat (limited to 'ROMs/hello_c.c')
-rw-r--r--ROMs/hello_c.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ROMs/hello_c.c b/ROMs/hello_c.c
index d0abdd5..3310b6b 100644
--- a/ROMs/hello_c.c
+++ b/ROMs/hello_c.c
@@ -2,5 +2,7 @@ int main()
{
//comment
int a = 5;
- return a += 5;
+ if (a == 5)
+ return 99;
+ return 0;
} \ No newline at end of file