consider the following structure:
struct num nam{
int no;
char name[25];
};
struct num nam
n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}};
.....
.....
printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1);
What does the above statement print?
a.8,9
b.9,9
c.8,8
d.8,unpredictable value
Answer Posted / santlal kurmi
The correct answer is
a. 8,9
because *(n1+2) means a[2]
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
write a program to display all prime numbers
How do you generate random numbers in C?
What is s in c?
What is data types?
What are the types of macro formats?
write a c program in such a way that if we enter the today date the output should be next day's date.
What is the maximum length of an identifier?
Differentiate between full, complete & perfect binary trees.
Why is it important to memset a variable, immediately after allocating memory to it ?
How we can insert comments in a c program?
Is c still used?
Where static variables are stored in c?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
What are the properties of union in c?
What happens if a header file is included twice?