. 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
What is nested structure?
How can I find out how much free space is available on disk?
What are unions in c?
How can variables be characterized?
Differentiate Source Codes from Object Codes
Why double pointer is used in c?
What is an array in c?
What is scope and lifetime of a variable in c?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What is your stream meaning?
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
Write a program to print numbers from 1 to 100 without using loop in c?
What is wrong with this code?
What are variables c?
What is the use of header?