. 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 is variable in c example?

590


how many key words availabel in c a) 28 b) 31 c) 32

631


Describe wild pointers in c?

636


What is #include called?

565


Explain how do you determine whether to use a stream function or a low-level function?

618






How can you read a directory in a C program?

647


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

2717


What is the use of f in c?

551


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

1464


What is difference between constant pointer and constant variable?

624


Explain how can I convert a number to a string?

639


Why we not create function inside function.

1744


How variables are declared in c?

568


When can a far pointer be used?

584


what is recursion in C

605