Comment on
Why can't I use the '|' bitwise operator in this statement?
Reply in thread
Thank you for the reply. It seems bitwise operators are somewhat of an advanced concept that I may revisit down the road.
Comment on
Why can't I use the '|' bitwise operator in this statement?
Reply in thread
Thank you for the reply. It seems bitwise operators are somewhat of an advanced concept that I may revisit down the road.
Comment on
Can't update to Fedora Silverblue 42
Reply in thread
It worked! I uninstalled dnf-automatic, libreoffice, and rpmfusion and then restarted.
Thanks for your help! Will keep your tips in mind for the future and try to avoid layering.
Comment on
Why does isalpha() fail to identify an alphabetic character?
Reply in thread
Ah ha! Yes, I did check the docs but I think I just glanced over that portion. Be more careful next time. Now that I took another look at the other ctype.h functions, they all return 1 or 0. I think I confused equivalent python built-in functions as those evaluated to true/false. The < is a less than sign but it seems it doesn't render correctly on Lemmy.
Comment on
Why can't I use the '|' bitwise operator in this statement?
Reply in thread
Thanks. I think I understand why I wouldn't want to use it in this case. But what is an example of where I can use it? This makes me think I should avoid using bitwise operators with integers and keep it to strings only, but I know that's not true from what I've learned.
Comment on
Can't update to Fedora Silverblue 42
Reply in thread
Done 😀
Comment on
Why can't I use the '|' bitwise operator in this statement?
Reply in thread
Thank you for the thorough explanation. It makes sense to me why I had the error that I did. I'll keep this in mind next time when I consider using a bitwise operator.
Comment on
Why does isalpha() fail to identify an alphabetic character?
Reply in thread
Sorry. It's in C. Updated post. Yes those are titles. I just included the relevant portions rather than the entire code.
Comment on
Why does isalpha() fail to identify an alphabetic character?
Reply in thread
Good point!
Comment on
Program hangs instead of exiting
Reply in thread
That passed the test! Thank you!
Comment on
Can't update to Fedora Silverblue 42
Reply in thread
Yeah I think I will follow the same approach. 3rd parties are a bit risky.
Comment on
Why can't I use the '|' bitwise operator in this statement?
Reply in thread
Thank you for breaking it down.
I'm just now sure when it is appropriate to use '|'. If bitwise operators can only be used with integers (and not floats), what's an example where I can use it.
Comment on
Why does the for loop repeat in this recursion?
Reply in thread
It's supposed to be a pyramid but not my code. It's an example of a recursive function from a CS50 lecture and I'm just trying to understand how the code works line by line.
Comment on
Why can't I use the '|' bitwise operator in this statement?
Reply in thread
Thank you. Not sure why in the link the arithmetic in green results in 7.
Comment on
Why does the for loop repeat in this recursion?
Reply in thread
Yes - I finally caught that part about n as it's just moving in reverse so it gets decremented. Now I'm not sure about i. In the debugger when the program gets to the for loop both n and i are equal to 1. The n I understand but i?
Comment on
Can't update to Fedora Silverblue 42
Reply in thread
I see now. So it's possible for someone to run into multiple issues which can make updating a hassle.
Comment on
Can't update to Fedora Silverblue 42
Reply in thread
Yes, I did. I was warned about doing so before but now I understand 😆
Comment on
Why does a control path not execute in this function?
Reply in thread
Ah I see. I had a bad habit of using else if statements instead of else statements because I thought else if could be better in seeing the condition it's testing for so it was clearer. I get the logic is actually different now.
Comment on
Can't update to Fedora Silverblue 42
Reply in thread
Also, as I reinstall a flathub version of LibreOffice, should I choose the Fedora repo or Flathub repo?
Comment on
Why does the for loop repeat in this recursion?
Reply in thread
Why does the for loop return when it hits the end of the function? Isn't the recursive portion already completed in draw(n - 1)? The rest of it is just normal non-recursive code if I understand it correctly.
Comment on
Can't update to Fedora Silverblue 42
Reply in thread
I have two entries each with a different BaseCommit. One has dnf-automatic, libreoffice, vpn app. The other has the same three plus rpmfusion-free-release and rpmfusion-nonfree-release.
I just recently installed the rpmfusion packages but I didn't know what I was doing. Just found something online suggesting an alternative update method for Silverblue.