3
votes
What is the logical difference between if (isupper(text[i]) == true) and if (isupper(text[i]))?
The isupper() function (and all of it's cousins) returns an int, not a bool. Depending on which function call (isalpha, isfloat, isupper, islower, etc.) is invoked, an integer that is a power of 2 ...
1
vote
Accepted
Running an 'if' statement inside of a 'for' loop; Need to continue loop w/o printing anything, but not sure what value to return
First, since not all the relevant code is here, we have to make some assumptions. First, length = strlen(key). Second, this is in main and not in a function that's called by main. Third, the code ...
1
vote
Else If Boolean Statements of Equality In the Case of Complex Numbers
That example doesn't say what data type x and y are, but generally you can assume that numerical variables are real numbers in programming, unless specified otherwise.
There is a way to work with ...
Only top scored, non community-wiki answers of a minimum length are eligible