Recently I asked in this forum , whether it is an error or not to use the following if statement which involves bit shifting of given integers x and y :
if (x<<y)
The conclusive answer for that question what that the statement as written above is not any kind of error , not a run-time error as well.
Suppose we would expand the scope of that question and rewrite the statement above to be the following one instead:
if (x<<y) x++;
in this case, would it still have no error of any kind ( including run-time error) ?
Aucun commentaire:
Enregistrer un commentaire