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...

write a program in 'c' to find the value of p[i+1]^n.p,i,n
are arguments of a macro and n is a integer

Answer Posted / ataraxic

int data[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

#define GET(p, i, n) \
({ \
p[i+1]^n; \
})

int main(int argc, char *argv[], char *envp[])
{
int res = GET(data, 2, 1);
printf("%d\n", res);
exit(EXIT_SUCCESS);
}

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is structure in c definition?

982


Why structure is used in c?

1107


Not all reserved words are written in lowercase. TRUE or FALSE?

1172


What is time null in c?

1000


Apart from dennis ritchie who the other person who contributed in design of c language.

1316


What is return in c programming?

914


What does s c mean on snapchat?

1034


What is typedef example?

1110


What are lookup tables in c?

950


What are data structures in c and how to use them?

1091


what do you mean by enumeration constant?

954


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

1074


What are the characteristics of arrays in c?

989


What is c system32 taskhostw exe?

972


What is the use of the function in c?

968