. 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
Differentiate between calloc and malloc.
What are header files why are they important?
Why can’t we compare structures?
What is malloc calloc and realloc in c?
What is the purpose of the statement: strcat (S2, S1)?
Why is c not oop?
In a header file whether functions are declared or defined?
What is the function of volatile in c language?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
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
Do you know the difference between malloc() and calloc() function?
What are multibyte characters?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Is it possible to initialize a variable at the time it was declared?
Explain what is the most efficient way to store flag values?