Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

Raspberry Pi Official Magazine • C & GUI book: Was the syntax corrected from Edition one?

$
0
0
It looks like nobody has even managed to get passed the "Prove you are a human" puzzler on
https://github.com/password_reset/


This is what the book teaches

Page 11

Code:

# include <stdio.h>void main (void){     /* A print statement */      printf ("Hello world \n");}
This would have been my correction, I must say normally Edition 2 book is normally a improvement on edition 1 what was in Edition 1?
edit before the 10th reader: I forgot to mention a 2000 edition learning C gave int main () instead of void main (void) a 1985 book I saved from going in the rubbish skip gave main ()

Code:

# include <stdio.h>int main (int){     /* A print statement */      printf ("Hello world \n");   return 0; }
Mind you if you have of used Geany 1.38 that comes with Rasperry Pi 5 it could have given you, most of the code so you just had to fill in the missing code

Code:

#include <stdio.h>int main(int argc, char **argv){return 0;}

Statistics: Posted by ericAuckland — Sat Jun 07, 2025 3:32 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles