. 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 / harichandana
a[2] value is assigned to b i.e a[2] element value 6 is stored in b[0].now b[-1] means element before 6 i.e 3....thus b[-1] is 3
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we use visual studio for c?
Is c# a good language?
Compare array data type to pointer data type
What are the advantages of Macro over function?
Why do we use c for the speed of light?
What's the best way of making my program efficient?
Explain why C language is procedural?
Why is python slower than c?
while initialization of array why we use a[][2] why not a[2][]...?
How can I write a function that takes a format string and a variable number of arguments?
how to construct a simulator keeping the logical boolean gates in c
Why is c faster?
What is a null string in c?
Which is more efficient, a switch statement or an if else chain?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?