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
What is the usage of the pointer in c?
How do I read the arrow keys? What about function keys?
How does free() know explain how much memory to release?
Can we declare variable anywhere in c?
Write a program to check palindrome number in c programming?
Can i use “int” data type to store the value 32768? Why?
Explain indirection?
Why we not create function inside function.
What do you mean by scope of a variable in c?
What is selection sort in c?
What does calloc stand for?
Why static is used in c?
What 'lex' does?
Write a program to generate the Fibinocci Series
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.....