. 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 / sandip talukder

answer is(B). coz b holds d adrs ofa[2].so b[0]is 6. thats
why b[-1] is 3.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is null pointer constant?

597


What does a pointer variable always consist of?

667


What does stand for?

601


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.

14971


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3058






How can I recover the file name given an open stream?

556


What is the size of enum in bytes?

592


write a program to display all prime numbers

1461


Describe the difference between = and == symbols in c programming?

779


What is ambagious result in C? explain with an example.

2059


What is clrscr in c?

682


How do you search data in a data file using random access method?

840


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

650


Can we declare function inside main?

572


What is use of #include in c?

603