main()
{
int x, arr[8]={11,22,33,44,55,66,77,88};
x=(arr+2)[3];
printf(ā%dā,x);
}
Answer Posted / 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 |
Post New Answer View All Answers
How macro execution is faster than function ?
What is c mainly used for?
Is Exception handling possible in c language?
Explain what is the difference between the expression '++a' and 'a++'?
largest Of three Number using without if condition?
Did c have any year 2000 problems?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
What are the 5 organizational structures?
What is the best style for code layout in c?
what are the different storage classes in c?
Why do we use namespace feature?
How is pointer initialized in c?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
Write a code to determine the total number of stops an elevator would take to serve N number of people.