Answer:
Static.
Explanation:
A local variable can be defined as an argument passed to a function or a variable that is declared within a function and as such can only be used or accessed within the function.
This ultimately implies that, a local variable is effective whilst the function or block is being executed (active).
Basically, all local variables can only be a member of either the register storage, static or auto (dynamic) categories in computer programming.
A local variable that is declared as static causes the program to keep the variable and its latest value even when the function that declared it is through executing.
Hence, the memory of a local variable that is declared as static remains for the lifetime (duration) of the whole program.
Answer:
I would say if it is a multiple choice
Explanation:
q3 or q5 would be the best ones to pick from in my eyes.
Answer:
The output of this question is 21. As show in the image
The explanation is given in below
Explanation:
Let first write the question
C=1
sum = 0
while(C<10):
C=C+3
sum=sum + C
print(sum)
Now Focus on
while(C<10):
C=C+3
sum=sum + C
The value of C is initially 1
C=1+3
Sum= 0+4
In second loop the value of C will become 4
c=4+3
sum=4+7
In third loop the value of C will be 7
c=7+3
sum=11+10
so the answer is 11+10=21
Giga usually means 10^9
We're trying to work giba, which is 2^30 into the vocabulary to differentiate them because of the confusion and difference that they create.
Isn’t this for a online drivers test thing...? I believe you might want to figure this or on your own I’m sorry