Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
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

D. Division of a and n

Answer: Option C


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals