. 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 / bipin chandra sai.s

ans is none,bcoz b has been assigned address &[2],but it
has been asked that ans for b[-1],so the location -1 is not
there,we have locations from 0,1,2,3..,so none is the ans

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between calloc and malloc.

751


What are header files why are they important?

574


Why can’t we compare structures?

806


What is malloc calloc and realloc in c?

660


What is the purpose of the statement: strcat (S2, S1)?

638






Why is c not oop?

533


In a header file whether functions are declared or defined?

627


What is the function of volatile in c language?

661


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

1854


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

647


Do you know the difference between malloc() and calloc() function?

607


What are multibyte characters?

642


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

647


Is it possible to initialize a variable at the time it was declared?

755


Explain what is the most efficient way to store flag values?

692