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

write a program to display all prime numbers

1914


How do you generate random numbers in C?

1149


What is s in c?

1001


What is data types?

1026


What are the types of macro formats?

1064


write a c program in such a way that if we enter the today date the output should be next day's date.

2140


What is the maximum length of an identifier?

1138


Differentiate between full, complete & perfect binary trees.

1055


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

2005


How we can insert comments in a c program?

1073


Is c still used?

1000


Where static variables are stored in c?

1044


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1098


What are the properties of union in c?

997


What happens if a header file is included twice?

988