| |

|
Hello, HackSoc!
|
|
|
|
|
|
I hope you enjoyed Virtual Games and Cake last week! It's great to have so many
new members at our events. On Friday this week, we have our online Film Night!
You'll also find a puzzle on some tricky C code further down this newsletter!
How good are your C debugging skills?
If you're enjoying our events so far, then please consider supporting our
society by becoming a paid member for just £4!
|
|
The Calendar
|
|
|
|
|
|
Film Night - 19:00, Fri 09/10 - HackSoc Discord (The Pod)
We gather together to watch a film (or sometimes several). Apparently some of
these might have a link to Computer Science, but we haven't spotted one yet.
Vote for the film you'd like to watch using our
Film Night Portal!
We'll use our very own live-streaming platform to watch the film together. Keep
an eye on our Slack and Discord just before 7pm for a link!
|
|
This Week's Puzzle - The Cursed C
|
|
|
|
|
|
Why do the two following pieces of C code not work?
1:
#include <stdio.h>
int messy[10] = {1, 8, 5, 4, 7, 2, 9, 4, 2, 0};
int counter = 0;
void main(void)
{
puts("Cleaning up...");
counter = 0;
while (counter <= 10)
{
messy[counter] = 0;
}
puts("Done.");
}
2:
#include <stdio.h>
#define MAGIC_NUMBER 10;
#define NUMBER_THREE 3;
void main(void)
{
int count = 0;
for (size_t i = 0; i < 6; i++)
{
count += MAGIC_NUMBER - NUMBER_THREE;
}
printf("Count is %d.", count);
}
|
|
And Finally...
|
|
|
|
|
|
Make sure you're in HackSoc's Slack workspace! We have over 100 members, and
it's free to join the conversation, so
sign up now!
If you're joining us for any of our virtual events, make sure you're also in
our Discord server.
Have a great week,
Aaron 🤖
|
|
|
|
|