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 is the data segment that is followed by c?
What is a program flowchart?
What does #pragma once mean?
What is difference between Structure and Unions?
How can I insert or delete a line (or record) in the middle of a file?
Why n++ execute faster than n+1 ?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
What are the advantages of using linked list for tree construction?
Can a program have two main functions?
What are the different types of control structures in programming?
Write a program to print factorial of given number using recursion?
Is c easy to learn?
What is a stream water?
What is c mainly used for?
Multiply an Integer Number by 2 Without Using Multiplication Operator