GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  TCS  >  C
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 16 of 87    Print  
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
C



  
Total Answers and Comments: 3 Last Update: July 21, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 23, 2005 04:44:44   #1  
Sinic        

RE: consider the following structure:struct num nam{int no;char name[25];};struct num nam n1[]={{12,&quo...
Answer is A
 
Is this answer useful? Yes | No
February 14, 2007 08:28:00   #2  
vasuma        

RE: consider the following structure:struct num na...
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.
 
Is this answer useful? Yes | No
July 20, 2007 14:06:10   #3  
pal        

RE: consider the following structure:struct num na...

the ans
8 9

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

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape