. 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
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
What is the difference between local variable and global variable in c?
Why should I use standard library functions instead of writing my own?
Are there constructors in c?
Why is python slower than c?
What does it mean when a pointer is used in an if statement?
What is c++ used for today?
What is the value of uninitialized variable in c?
What is LINKED LIST? How can you access the last element in a linked list?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
What is header file in c?
What are the types of operators in c?
How can a string be converted to a number?
Explain what are bus errors, memory faults, and core dumps?
In C programming, how do you insert quote characters (‘ and “) into the output screen?