data structures - If statement in c++ -
Oh dear!
I know that if the statement is a costly time in C ++, I remember that once my teacher said that if the statement is an expensive time in computer time then
If we can do everything using the statement in cement, then it is very powerful statement in the perspective of programming, but it is expensive in computer time perspective.
I am making a beginning and I am studying the Data Structure course after the introduction of the C ++ course. My question is for you If the detail of the statement is very high, then do I have to do better for it?
I'm not sure how normal you can be if the statement is expensive.
If you have >>
if (true) {...}
then if
Most will be optimized by your compiler.
If, on the other hand, you have ..
if (veryConvolutedMethodTogGetAnswer ()) {.}
more method A lot of convoluted method is called gesture ()
a lot of work, you can argue that this is an expensive if statement, but not because of the reason you are in the process of decision making .
"If" self "is" not usually expensive "in reference to the cycle cycle.
Comments
Post a Comment