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
When should a type cast be used?
What is exit() function?
find largest of 3 no
how can I convert a string to a number?
How the processor registers can be used in C ?
How we add our function in liabrary as liabrary function. Exp. we want use our int factorical(int); function as int pow(int,int); function working in math header file.
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
disadvantages of realloc ?
what is const volatile?
What are the types of bitwise operator?
what are the advantage and disadvantage of recursion
how to connect oracle in C/C++.