. 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 / gagan
answer is 3
bcz b[0]=6 so b[-1]=3
| Is This Answer Correct ? | 23 Yes | 6 No |
Post New Answer View All Answers
In a header file whether functions are declared or defined?
What is the deal on sprintf_s return value?
What is the use of a static variable in c?
When should we use pointers in a c program?
What is an operator?
What is extern variable in c with example?
Write a program to print "hello world" without using a semicolon?
What is ambagious result in C? explain with an example.
What happens if you free a pointer twice?
what is event driven software and what is procedural driven software?
Explain the red-black trees?
What is the importance of c in your views?
Is a house a shell structure?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
write a progrmm in c language take user interface generate table using for loop?