-
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);
}
-
- 15
- 25
- 35
- 45
- None of these
Correct Option: A
15