. 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
Can we use any name in place of argv and argc as command line arguments?
What is .obj file in c?
Explain can static variables be declared in a header file?
how to construct a simulator keeping the logical boolean gates in c
Why can arithmetic operations not be performed on void pointers?
#include
What are the features of the c language?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
How many bytes are occupied by near, far and huge pointers (dos)?
What is the acronym for ansi?
What are predefined functions in c?
Do you know the use of fflush() function?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
Why are algorithms important in c program?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?