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



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

Answer / 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

More C Interview Questions

What is string function c?

0 Answers  


How many types of operator or there in c?

0 Answers  


What are derived data types in c?

0 Answers  


What is the purpose of type declarations?

0 Answers  


How do I get an accurate error status return from system on ms-dos?

0 Answers  


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

0 Answers  


which is conditional construct a) if statement b) switch statement c) while/for d) goto

0 Answers  


what is the use of fflush() function?

2 Answers  


What are the parts of c program?

0 Answers  


What is %g in c?

0 Answers  


Why do u use # before include in a C Progam?

9 Answers   IBM,


hello everybody can we change a the adress of a variabl i mean can i put for exemple for a int *p: &p=6 ?????????

1 Answers  


Categories