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 |
What is local and global variable in c?
What is the difference between call by value and call by reference in c?
what is the difference between. system call and library function?
What is a global variable in c?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
write a statement to display all the elements array M(in reverse order? int M[8]={20,21,22,23,24,25,26,27};
how to find sum of digits in C?
main() { int i = -3,j=2,k=0,m; m= ++i || ++j && ++k; printf("%d%d%d",i,j,k,m); }
52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?
How to add two numbers with using function?
i want to make a program in which we use input having four digits(4321) and get output its reciprocal(1234).
Explain the use of 'auto' keyword in c programming?