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 / 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 |
What is string function c?
How many types of operator or there in c?
What are derived data types in c?
What is the purpose of type declarations?
How do I get an accurate error status return from system on ms-dos?
What do you mean by scope of a variable in c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
what is the use of fflush() function?
What are the parts of c program?
What is %g in c?
Why do u use # before include in a C Progam?
hello everybody can we change a the adress of a variabl i mean can i put for exemple for a int *p: &p=6 ?????????