+ 2
If i make multiple null statements in c++, with no reason, does this affects in the execution time for the compiler?
4 odpowiedzi
0
Even if the compiler don't get rid of it, it would make no difference in the computacional time of a program.
+ 1
I mean.....
void main()
{
;;;;;;;;;;;;;;;;;;;......;
}
0
someone has to interpret the coafter all so i think if yo would place like 1kkkkkkkkkkkkkkkkkkk... and some more of those it will slow interpreter a bit
- 1
you mean like int a = null? why dont you try it out? if you want to initialize a null value, is place resetved for a variable? is there any place for a stack for that var? i think that yes, but may be wrong. if yes, then those 32 (default) bits are pointing to null so if you were about to inilialize like 1000 of them there would be 32000 empty bits, right? i may be wtong tho so i look forward for some answers!