You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-03-20 05:40:24
Structure statement
Question:
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?
Option A):
8,9
Option B):
9,9
Option C):
9,8
Option D):
8,8
Correct Answer is Option D):
8,8
Failure is the first step towards seccess.
Offline
2015-03-20 05:40:24
- Advertisement
- Ads By Google
Re: Structure statement
\n
Pages:: 1