. 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 / megh singh rana
HERE address of location a[2] assined to b .now b stre this
data in o location as b[0],so b[-1] is the value immediate
before b[0]( 6) is 3,thats why answer of b[-1] is 3,
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What are structure members?
What is scanf_s in c?
What is dynamic variable in c?
When we use void main and int main?
How does #define work?
How can you call a function, given its name as a string?
How can you restore a redirected standard stream?
What is the explanation for prototype function in c?
What functions are used for dynamic memory allocation in c language?
How do you determine the length of a string value that was stored in a variable?
What is FIFO?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
How can I read data from data files with particular formats?
What is the deal on sprintf_s return value?
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)