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
What are the different data types in C?
Tell me with an example the self-referential structure?
What does %d do?
How would you rename a function in C?
How can you increase the size of a statically allocated array?
write a program to find out prime number using sieve case?
can any one provide me the notes of data structure for ignou cs-62 paper
What is NULL pointer?
How do you print only part of a string?
What is chain pointer in c?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
How can I implement sets or arrays of bits?
What is the c language function prototype?
Why is it important to memset a variable, immediately after allocating memory to it ?
What is the size of a union variable?