. Consider the following program
main()
{
int a[5]={1,3,6,7,0};
int *b;
b=&a[2];
}
The value of b[-1] is
(A) 1 (B) 3 (C) -6 (D) none
Answer Posted / sujay
I think the answer is none
bcoz b is a pointer var so, it points to an ad location
the answer is not any of the given options
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
What is the difference between exit() and _exit() function in c?
What is the maximum no. of arguments that can be given in a command line in C.?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
what is the format specifier for printing a pointer value?
What are compound statements?
Is there anything like an ifdef for typedefs?
Write a program to reverse a string.
What is ## preprocessor operator in c?
What is the right type to use for boolean values in c? Is there a standard type?
How can I automatically locate a programs configuration files in the same directory as the executable?
Why header files are used?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is context in c?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?