Given a piece of code
int x[10];
int *ab;
ab=x;
To access the 6th element of the array which of the
following is incorrect?
(A) *(x+5) (B) x[5] (C) ab[5] (D) *(*ab+5} .

Answer Posted / pradeep

answer: D(invalid indirection)

Is This Answer Correct ?    17 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to create duplicate link list using C???

2069


Differentiate Source Codes from Object Codes

814


Can the sizeof operator be used to tell the size of an array passed to a function?

612


Why c is called procedure oriented language?

576


What is the use of sizeof () in c?

555






What is the difference between mpi and openmp?

731


the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....

22200


Explain the binary height balanced tree?

719


What is the explanation for the dangling pointer in c?

671


Calculate 1*2*3*____*n using recursive function??

1511


Explain how do you sort filenames in a directory?

600


How do you redirect a standard stream?

618


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2263


Differentiate between Macro and ordinary definition.

724


Explain what is meant by 'bit masking'?

640