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
Who developed c language?
What are identifiers in c?
What is pre-emptive data structure and explain it with example?
how to find anagram without using string functions using only loops in c programming
Why c is faster than c++?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What are register variables in c?
what are the 10 different models of writing an addition program in C language?
How can I read/write structures from/to data files?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
What is structure in c language?
What happens if a header file is included twice?