C Programming :: Functions - Discussion
Home > C Programming > Functions > MCQs Questions Discussion
38 / 53
What is the following summation fuction doing?
void summation (n)
int n;
{
int i; sum = 0;
i = 1;
for(i = 1; i < = n; i++)
sum+= i;
}
void summation (n)
int n;
{
int i; sum = 0;
i = 1;
for(i = 1; i < = n; i++)
sum+= i;
}
Asum of the n numbers
Bnth number
CCompilation Error
DNone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!