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 / shivangi
c is the wrong answer
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
What is the purpose of sprintf?
What is declaration and definition in c?
What is dynamic memory allocation?
Why pointers are used?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
What is a function simple definition?
Why is c still so popular?
What is default value of global variable in c?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What is indirection in c?
What does volatile do?
What is a string?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?