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
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
Design a program using an array that searches a number if it is found on the list of the given input numbers and locate its exact location in the list.
Explain what is a const pointer?
give one ip, find out which contry
main() { static char *s[]={"black","white","yellow","voilet"}; char **ptr[]={s+3,s+2,s+1,s}, ***p; p=ptr; **++p; printf("%s",*--*++p+3); }
Find the largest number from the given 2 numbers without using any loops and the conditional operator.
void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) printf("%d",*(pint+j)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
Is struct oop?
with out using main how to execute the program?
What is the difference between %d and %i?
How do you print an address?