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



main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(“%d”,x); }..

Answer / neha

66

Is This Answer Correct ?    26 Yes 2 No

main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(“%d”,x); }..

Answer / priya

i want answer for this

Is This Answer Correct ?    17 Yes 3 No

main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(“%d”,x); }..

Answer / shiva

can you explain neha how ans is 66

Is This Answer Correct ?    7 Yes 0 No

main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(“%d”,x); }..

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

main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(“%d”,x); }..

Answer / akshay

66

Is This Answer Correct ?    2 Yes 1 No

main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(“%d”,x); }..

Answer / sathya

answer is 44

Is This Answer Correct ?    0 Yes 2 No

main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(“%d”,x); }..

Answer / kaveri

Can you explain how ans is 33

Is This Answer Correct ?    1 Yes 4 No

main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(“%d”,x); }..

Answer / mahesh

33

Is This Answer Correct ?    0 Yes 9 No

Post New Answer

More C Interview Questions

Is it acceptable to declare/define a variable in a c header?

0 Answers  


What is printf () in c?

0 Answers  


Can the “if” function be used in comparing strings?

0 Answers  


write a program fibonacci series and palindrome program in c

0 Answers   Aditi Placement Service,


What is difference between the following 2 lines…. int temp = (int)(0x00); int temp = (0x00int);

3 Answers   Bosch,






why Language C is plateform dependent

3 Answers   Siemens, Wipro,


What are unions in c?

0 Answers  


how to find string length wihtout using c function?

6 Answers  


what is c?

4 Answers   IBM, TCS,


write a program for 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 4 4

1 Answers  


What are the difference between a free-standing and a hosted environment?

0 Answers   Infogain,


How to draw the flowchart for structure programs?

0 Answers  


Categories