. 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 / sujay
I think the answer is none
bcoz b is a pointer var so, it points to an ad location
the answer is not any of the given options
Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
Is array a primitive data type in c?
Can a local variable be volatile in c?
What are two dimensional arrays alternatively called as?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
Can the sizeof operator be used to tell the size of an array passed to a function?
What is volatile variable in c?
Explain how can you restore a redirected standard stream?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
How can I implement sets or arrays of bits?
What is c mainly used for?
Is main is a keyword in c?
Which is the memory area not included in C program? give the reason
Explain what is the difference between functions getch() and getche()?
Explain bitwise shift operators?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com