main()
{
int x, arr[8]={11,22,33,44,55,66,77,88};
x=(arr+2)[3];
printf(“%d”,x);
}
Answers were Sorted based on User's Feedback
Answer / vishnu
66 is the answer
explanation
name of array contains the base address of the array ,by adding 2 to base address we are changing its initial position by 2,so now arr[0] is 33 , thus a[3] is 66.
| Is This Answer Correct ? | 8 Yes | 3 No |
simple c program for 12345 convert 54321 with out using string
What are static variables in c?
How can you check to see whether a symbol is defined?
How can I find the day of the week given the date?
Define Array of pointers.
What is the difference between declaring a variable by constant keyword and #define ing that variable?
write a program to display the array elements in reverse order in c language
Explain what are the advantages and disadvantages of a heap?
C program to read the integer and calculate sum and average using single dimensional array
what is the syallabus of computer science students in group- 1?
How arrays can be passed to a user defined function
What are the different properties of variable number of arguments?