u/everydayreligion1090

Why is the output of this C code so unpredictable?

#include <stdio.h>

int a = 1;

int fun(){
    a = a * 2;
    return a;
}
int main() {
    int x = a + fun() + fun();
    printf("%d", x);
    return 0;
}

I tested this C code on Programiz and it consistently printed 8.

Thing is I got no idea how it's 8 because whether the expression is evaluated from the left or from the right, it just doesn't add up.

Does this depend on the compiler?

I would appreciate clarification on this.

reddit.com
u/everydayreligion1090 — 4 hours ago

What’s the difference between built-in words and reserved words in programming languages?

what i got is that reserved words are part of the language's syntax it self while built-in are from the language's library. is that right?

if so, how can i tell them apart? how do i know which word is built-in and which one is reserved?

reddit.com
u/everydayreligion1090 — 9 days ago

Lot of young players just chuck shots for the sake of it OR become too passive because theyre not confident enough

I think Jrue helps him with the first issue because he teaches how to impact winning without chucking shots while Dame is still there to prevent him from being scared of taking the right shots

Dont think any young guard could have a more ideal mentorship setup

reddit.com
u/everydayreligion1090 — 14 days ago

February (23 mpg)

13 / 3 / 5

40 / 24 / 85

March (24 mpg)

15 / 3 / 3

42 / 41 / 83

April – regular season (30 mpg)

15 / 2 / 3

44 / 39 / 89

April – playoffs (29 mpg)

15 / 2 / 1

48 / 46 / 75

MIP candiate at Portland (or somewhere else) next season?

reddit.com
u/everydayreligion1090 — 16 days ago

With Jrue Holiday averaging 16/5/6 and Jerami Grant putting up 19/4/2 on good efficiency for a playoff team

What could Portland get out of them?

u/everydayreligion1090 — 16 days ago
▲ 11 r/ripcity

Sure his defence needs work but whenever he plays he gets boards and when he gets opportunities to shoot he's a sniper. Also shouldn't cost that much

And honestly? Doesnt seem like Denver are using him much

reddit.com
u/everydayreligion1090 — 18 days ago
▲ 136 r/ripcity

Do you really believe either Scoot or Sharpe will become the type of player capable of consistently leading a team to a 1st seed or/and a championship?

Do you also believe they are realistically becoming an MVP or Finals MVP? Because that's the level someone like Giannis reached and can easily reach again.

Personally, I don't see Scoot or Sharpe hitting that level with us, ever

And this 'maybe they will' mindset is how teams waste seasons overcommitting to players who just never hit that level

Right now, our best player is 36, and our 2nd best player is in his prime but hasn't proven he can lead a franchise

So instead of betting on a HIGHLY uncertain future, why not trade that potential for a proven star who could make us a REAL cotnender for the next 2-3 seasons?

reddit.com
u/everydayreligion1090 — 19 days ago

I'm taking a Concepts of Programming Languages course (syntax/semantics, type systems, imperative vs functional, etc.) and I keep getting around 50–60% on quizzes and the midterm.

I do study, and I understand things while reviewing, but in the actual exam I get stuck between two answers and usually pick the wrong one like it feels like I recognize concepts but don’t fully get them

The exams are mostly multiple choice and focus on understanding, not memorization, which might be where I’m messing up... but Im not sure if the final exam is going to be multiple choice so I need to prepare for thr worst

Has anyone dealt with this kind of course before? How do you actually study for it and get past that 50–60% range and into the 90-100% range?

reddit.com
u/everydayreligion1090 — 21 days ago