You are not logged in.

#1 2015-03-20 05:40:24

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

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.

2015-03-20 05:40:24

Advertisement
Ads By Google

Re: Structure statement



\n

Board footer