Vidyalelo
C Programming · Q74

C Fundamentals

Programming · C Programming · question 74

Q74

What will be the output of the following C code? #include int main() int a = 4, n, i, result = 0; scanf("%d", &n); for (i = 0;i < n; i++) result += a;

A.
Addition of a and n
B.
Subtraction of a and n
C.
Multiplication of a and n
Answer
D.
Division of a and n

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board