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
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
What does p mean in physics?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
Write a function that will take in a phone number and output all possible alphabetical combinations
What is the best way of making my program efficient?
What is nested structure?
What is page thrashing?
Do string constants represent numerical values?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What is void main () in c?
What is extern variable in c with example?
What are pointers? What are stacks and queues?
Why we write conio h in c?
What are the advantages of c preprocessor?
write a program to find the given number is prime or not