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 the usage of the pointer in c?

1111


How do I read the arrow keys? What about function keys?

1082


How does free() know explain how much memory to release?

1052


Can we declare variable anywhere in c?

966


Write a program to check palindrome number in c programming?

1013


Can i use “int” data type to store the value 32768? Why?

1187


Explain indirection?

1127


Why we not create function inside function.

2193


What do you mean by scope of a variable in c?

1010


What is selection sort in c?

1083


What does calloc stand for?

1155


Why static is used in c?

1089


What 'lex' does?

1177


Write a program to generate the Fibinocci Series

1232


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1791