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

write a program to display all prime numbers

1454


What is the hardest programming language?

671


Write a C program to count the number of email on text

1414


How do I swap bytes?

628


shorting algorithmS

1801






How to find a missed value, if you want to store 100 values in a 99 sized array?

816


What are 3 types of structures?

594


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

656


How can I do peek and poke in c?

617


Can we replace the struct function in tree syntax with a union?

779


What is quick sort in c?

581


Explain how can you determine the size of an allocated portion of memory?

624


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

780


Not all reserved words are written in lowercase. TRUE or FALSE?

719


Difference between macros and inline functions? Can a function be forced as inline?

709