This is a very detailed question about the logic operators ||, && on C++. Im using them in my code, but I doubt about this code:
bool filluppointer(int*sth);
if (filluppointer(&pointer) || filluppointer2(&pointer))
return;
filluppointer returns true if something happened, so not always. My question is, if the first function returns true, will the second function in the if block be executed? || is equal to the OR operator, so according to the specification both functions are executed consecutively and then the bools are compared. I just want to create such a structure that the entire if structure returns when encountering the first true function, and it is critical to stop then since I want that specific value in the pointer. Executing another function afterwards will change the value (not in here, but in my real code it does).