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} .

Answers were Sorted based on User's Feedback



Given a piece of code int x[10]; int *ab; ab=x; To access the 6th element of the array which o..

Answer / pradeep

answer: D(invalid indirection)

Is This Answer Correct ?    17 Yes 1 No

Given a piece of code int x[10]; int *ab; ab=x; To access the 6th element of the array which o..

Answer / sandzee

d

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More C Interview Questions

What are enumerated types?

0 Answers  


Write a program to print prime nums from 1-20 using c programing?

13 Answers   IBM,


Why doesnt this code work?

0 Answers  


print out put like this form 1 2 3 4 5 6 3 5 7 9 11 8 12 16 20

8 Answers   TCS,


what are the stoge class in C and tel the scope and life time of it?

2 Answers   Tech Mahindra,






What is page thrashing?

0 Answers  


What is getch?

0 Answers  


What is realloc in c?

0 Answers  


Can two or more operators such as and be combined in a single line of program code?

0 Answers  


What is mean by data types in c?

0 Answers  


what are # pragma staments?

0 Answers  


What is advantage of pointer in c?

0 Answers  


Categories