given the piece of code
int a[50];
int *pa;
pa=a;
to access the 6th element of the array which of the
following is incorrect?
a.*(a+5)
b.a[5]
c.pa[5]
d.*(*pa + 5)
Answer Posted / fazlur rahaman naik
d is the right answer.
| Is This Answer Correct ? | 19 Yes | 2 No |
Post New Answer View All Answers
What are the parts of c program?
What is logical error?
Difference between exit() and _exit() function?
What does return 1 means in c?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
write a program to find the given number is prime or not
Why void is used in c?
Can we declare variable anywhere in c?
What is the general form of #line preprocessor?
Why is %d used in c?
Explain what is the best way to comment out a section of code that contains comments?
Does * p ++ increment p or what it points to?
How do I read the arrow keys? What about function keys?
How do you initialize pointer variables?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.