. 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 / sujay
I think the answer is none
bcoz b is a pointer var so, it points to an ad location
the answer is not any of the given options
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
Differentiate between calloc and malloc.
What are the Advantages of using macro
Tell us something about keyword 'auto'.
What is the return type of sizeof?
How to find a missed value, if you want to store 100 values in a 99 sized array?
How to write a code for reverse of string without using string functions?
What is the best organizational structure?
Between macros and functions,which is better to use and why?
What is the explanation for prototype function in c?
What is c programming structure?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
What is the mean of function?
What is void c?
How can this be legal c?
How can you find out how much memory is available?