Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

To___________a value means to increase it by one, and to__________a value means

ID: 3696120 • Letter: T

Question

To___________a value means to increase it by one, and to__________a value means to decrease it by one. Reference variables allow arguments to be passed by___________. A(H)__________is a special value that marks the end of a series of values. The__________hoop always iterates at least once. Inside the for loop's parentheses, the first expression is the__________the second expression is the___________and the third expression is the____________, the second expression is the_______and the third expression is the_________. A(H)____________is a variable that "counts" the number of times a loop iterates.___________local variables retain their values between function calls. Reference variables are defined like regular variables, except there is a a(n)_________in front of the name. When only a copy of an argument is passed to a function, it is said to be passed by___________. if a function has a local variable with the same name as a global variable, only the_____________variable can be seen by the function. Write the line of a code for an accumulator sum that stores each iteration of i. Write our favorite for loop (just the first line):

Explanation / Answer

1) ++ means increment and -- means decrement
2)Reference variables allows argument to be passed by REFERENCE
3)SEMICOLUMN (;) is the special value which marks the end of series of values
4)DO..WHILE loop always iterates at least one
5)Inside the for loop
for(initialisation;condition;increment/decrement)
{
//body of the for loop
}

ex - for(int i=0;i<5;i++)
{
display i;
}
  
6)in the loop
condition variable is the variable which count the number of time the loop will get executed
for(int i=0;i<5;i++)
{
display i;
}
=> here i is the variable which will decide based on the condition(which has given in the middle) that how many times the loop will get executed.
  
7) the LOCAL variables retain there values between the function call based on the memory uses in the program

8) reference variables are defined like a regular variable, except there is an * in front of them
ex- int *a=&b;

9)when only a copy of the argument is passed as an argument to the function it is said to be passed by VALUE
ex - fun(a,b);

10) if the variable has local variable with the same name as the global variable, only the LOCAL variable can be seen by the function

11) program for accumulator

#include<stdio.h>
int main()
{
int sum=0;
int i=0;
for(i=0;i<10;i++)
{
sum=sum+i;
}
return 0;
}

12)for loop ->

for(int i=0;i<n;i++)
{
//loop body
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote