?
What will be the output of the following C code?
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;
}
#include <stdio.h>
int main()
{
int a = 4, n, i, result = 0;
scanf("%d", &n);
for (i = 0;i < n; i++)
result += a;
}
Join the Discussion
Login to post a comment or share your explanation.
Login