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 can you pass an array to a function by value?
Can we declare variable anywhere in c?
What is string constants?
How are variables declared in c?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
How can you check to see whether a symbol is defined?
What is sizeof array?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Can the curly brackets { } be used to enclose a single line of code?
Is calloc better than malloc?
Are pointers really faster than arrays?
What is the scope of an external variable in c?
What are different types of pointers?
What is a protocol in c?
Tell me what are bitwise shift operators?