you are viewing a single comment's thread
view the rest of the comments
[–] 9 points 7 months ago (1 child)

int personality = sizeof(goals);

Feels a bit simplified to me.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 7 points 7 months ago*

    You are correct, that is simplified. The whole line is

    int personality = sizeof(goals) / sizeof(goals[0]);
    

    To get the length of an array in C, it's necessary to divide its memory footprint by the size of a single element!

    BTW you can see what appears to be ASCII in the background of that image. You can decode it if you're bored.

  • source
  • parent