. 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
Explain the array representation of a binary tree in C.
What is wrong with this declaration?
Explain argument and its types.
What is a structure and why it is used?
Can you add pointers together? Why would you?
What are nested functions in c?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
What are the usage of pointer in c?
Why is c not oop?
Is there any data type in c with variable size?
What does the c preprocessor do?
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
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
What does. int *x[](); means ?
What is the difference between malloc() and calloc() function in c language?