. 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 / sandip talukder
answer is(B). coz b holds d adrs ofa[2].so b[0]is 6. thats
why b[-1] is 3.
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is null pointer constant?
What does a pointer variable always consist of?
What does stand for?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
How can I recover the file name given an open stream?
What is the size of enum in bytes?
write a program to display all prime numbers
Describe the difference between = and == symbols in c programming?
What is ambagious result in C? explain with an example.
What is clrscr in c?
How do you search data in a data file using random access method?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
Can we declare function inside main?
What is use of #include in c?