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
When should a far pointer be used?
What is a union?
What is the use of header?
What are type modifiers in c?
What is omp_num_threads?
What are file streams?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
How does sizeof know array size?
Write the control statements in C language
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
Explain the difference between ++u and u++?
Is it cc or c in a letter?
Explain pointer. What are function pointers in C?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What does it mean when the linker says that _end is undefined?