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,9b.9,9c.8,8d.8,unpredictable value

C
This question is related to TCS Interview

Showing Answers 1 - 3 of 3 Answers

Sinic

  • Aug 23rd, 2005
 

Answer is A

  Was this answer useful?  Yes

vasuma

  • Feb 14th, 2007
 

First of all code is having synatax errors.no is undeclared.output is 8, some junk value so, option d is correct.I have compiled and saw the result.

pal

  • Jul 20th, 2007
 


the ans
 8,9

n1[2] = (*(n+2))

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions