. 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 a nested loop?
What are identifiers and keywords in c?
How do you print only part of a string?
What is a double c?
Why do we use c for the speed of light?
Which one would you prefer - a macro or a function?
What is string constants?
What is the size of enum in c?
Is it fine to write void main () or main () in c?
What is scope rule in c?
What are the c keywords?
What is a MAC Address?
Is it possible to initialize a variable at the time it was declared?
C program to find all possible outcomes of a dice?
Are the variables argc and argv are local to main?