Top

Discussion

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

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment