. 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


Please Help Members By Posting Answers For Below Questions

What does return 1 means in c?

589


In c language can we compile a program without main() function?

584


Can we add pointers together?

622


What is keyword in c?

606


What are the 5 elements of structure?

573






What is the use of #define preprocessor in c?

621


How can you increase the allowable number of simultaneously open files?

599


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5464


When should a type cast not be used?

627


What is #define?

578


What is derived datatype in c?

639


What are terms in math?

596


What is the significance of an algorithm to C programming?

598


What is the use of printf() and scanf() functions?

640


What is the value of c?

576