Sail E0 Webinar
Question

What is the output of this C code?    int main()    {        int a = 4, n, i, result = 0;        scanf("%d", n);        for (i = 0;i < n; i++)        result += a;    }

Options:
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


None.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers