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 / sandzee

d

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

640


What is assert and when would I use it?

580


What is the difference between break and continue?

606


Can you pass an entire structure to functions?

696


Write a c program to demonstrate character and string constants?

1685






What does sizeof return c?

608


What are the 4 types of functions?

573


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

2609


Is void a keyword in c?

578


Explain the use of #pragma exit?

699


write an algorithm to display a square matrix.

2223


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1214


Explain how can I remove the trailing spaces from a string?

625


What are data types in c language?

586


what is a constant pointer in C

680