Hi!
I will begin studying computer science at an university in about 2 months.
In preparation for it, I have received from an older friend all his studying-material from the past (2012) in C, because regards to the subject programming, C is the first language our university starts off with.
Hence I also got the script of his previous professor and I am wondering if C had major changes since around 2012, so that former syntax does not work anymore?
Please take a look on this code-snippet from the script:
Screenshot - 6971c62a191d4de587908f49a420a721 - Gyazo
I can easily "fix it", so that it does work, but how the heck can be the prof with a simple basic example wrong?
Obviously I do not think that he is wrong, but what do I miss?
C was 2012 so different as opposed to now?
Here is my "fix":
Screenshot - 7c919543eb9289c2f3a57491244be508 - Gyazo
Note:
I am sorry for only being able to post links to the screenshots, but somehow the "insert image"-function does not work for me.
Best regards,
Placebo