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
Why c is called a mid level programming language?
What is the use of the #include directive?
What is a lvalue
What is 02d in c?
Why can arithmetic operations not be performed on void pointers?
What are 'near' and 'far' pointers?
Explain what is the concatenation operator?
What is main () in c?
Explain how do you sort filenames in a directory?
write a program to remove duplicate from an ordered char array? in c
What's the total generic pointer type?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)