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
how to create duplicate link list using C???
Differentiate Source Codes from Object Codes
Can the sizeof operator be used to tell the size of an array passed to a function?
Why c is called procedure oriented language?
What is the use of sizeof () in c?
What is the difference between mpi and openmp?
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!+....
Explain the binary height balanced tree?
What is the explanation for the dangling pointer in c?
Calculate 1*2*3*____*n using recursive function??
Explain how do you sort filenames in a directory?
How do you redirect a standard stream?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
Differentiate between Macro and ordinary definition.
Explain what is meant by 'bit masking'?