. 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 / megh singh rana

HERE address of location a[2] assined to b .now b stre this
data in o location as b[0],so b[-1] is the value immediate
before b[0]( 6) is 3,thats why answer of b[-1] is 3,

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the array representation of a binary tree in C.

728


What is wrong with this declaration?

613


Explain argument and its types.

605


What is a structure and why it is used?

621


Can you add pointers together? Why would you?

646






What are nested functions in c?

566


In C programming, how do you insert quote characters (‘ and “) into the output screen?

895


What are the usage of pointer in c?

703


Why is c not oop?

539


Is there any data type in c with variable size?

633


What does the c preprocessor do?

623


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2190


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

1738


What does. int *x[](); means ?

638


What is the difference between malloc() and calloc() function in c language?

604