Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the different data types in C?

1249


Tell me with an example the self-referential structure?

1079


What does %d do?

1357


How would you rename a function in C?

1091


How can you increase the size of a statically allocated array?

1121


write a program to find out prime number using sieve case?

2139


can any one provide me the notes of data structure for ignou cs-62 paper

2232


What is NULL pointer?

1144


How do you print only part of a string?

1072


What is chain pointer in c?

1115


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1646


How can I implement sets or arrays of bits?

1092


What is the c language function prototype?

1142


Why is it important to memset a variable, immediately after allocating memory to it ?

2133


What is the size of a union variable?

1100