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


Please Help Members By Posting Answers For Below Questions

Who developed c language?

630


What are identifiers in c?

625


What is pre-emptive data structure and explain it with example?

3203


how to find anagram without using string functions using only loops in c programming

2709


Why c is faster than c++?

623






I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1897


What are register variables in c?

565


what are the 10 different models of writing an addition program in C language?

1430


How can I read/write structures from/to data files?

544


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

7385


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.

1512


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1521


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

644


What is structure in c language?

610


What happens if a header file is included twice?

580