1.

What will be the output of the following C code?
#include <stdio.h>
struct Number
{
int n1;
int n2;
};
void function(struct Number*);
int main()
{
struct Number num1[] = {15, 25, 35, 45};
function(num1);
}
void function(struct Number num2[])
{
printf("%d n", num2->n1);
}

A. 15
B. 25
C. 35
D. 45
E. None of these
Answer» B. 25


Discussion

No Comment Found

Related MCQs