. 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 / megh singh rana

HERE address of location a[2] assined to b .now b stre this
data in o location as b[0],so b[-1] is the value immediate
before b[0]( 6) is 3,thats why answer of 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 the size of enum in c?

614


Can we declare a function inside a function in c?

582


What do you know about the use of bit field?

609


What are the types of assignment statements?

627


we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above

633






Is c is a procedural language?

595


Why calloc is better than malloc?

570


Which control loop is recommended if you have to execute set of statements for fixed number of times?

806


Write a program for finding factorial of a number.

629


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

2528


What is wild pointer in c?

601


What is the maximum length of an identifier?

663


Explain how can I prevent another program from modifying part of a file that I am modifying?

633


Can you add pointers together? Why would you?

640


Compare interpreters and compilers.

635