. 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
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What are the c keywords?
How do you define CONSTANT in C?
What is the use of static variable in c?
why programs in c are running with out #include
How many types of arrays are there in c?
What will be the outcome of the following conditional statement if the value of variable s is 10?
Is there a built-in function in C that can be used for sorting data?
What do you understand by friend-functions? How are they used?
How can you determine the maximum value that a numeric variable can hold?
Which node is more powerful and can handle local information processing or graphics processing?
Can a pointer be null?
What are all different types of pointers in c?
Do variables need to be initialized?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .