• retagged by
1,206 views

1 Answer

Best answer
5 5 votes
sir,

here value of q-p should be 4..

if the value of *q - *p had been asked then it should be -13
• selected by
Answer:
Position:
Show:

Related questions

4 4 votes
1 answers 1 answer
1.0k
1.0k views
Bikram asked May 14, 2017
1,028 views
Assume that $a[4]$ is a one-dimensional array of $4$ elements, $p$ is a pointer variable and $p = a$ is performed. Now, which among these expressions is illegal?$p == a[0...
0 0 votes
1 answers 1 answer
544
544 views
Bikram asked May 14, 2017
544 views
Which of the following will print the value $2$ for this code snippet?#include<stdio.h int main() { int arr[10][20][30] = {0}; arr[5] = 2; __________ // missing line he...
4 4 votes
2 answers 2 answers
1.9k
1.9k views
Bikram asked May 14, 2017
1,944 views
State the output in below code snippet :#include <stdio.h int main(void) { char x[5] = { 1, 2, 3, 4, 5 }; char *ptr = (char*)(&x + 1); printf("%d %d\n", *(x + 1), *(ptr -...
4 4 votes
1 answers 1 answer
1.5k
1.5k views
Bikram asked May 14, 2017
1,511 views
Point out the error : #include <stdio.h void f(int*); int main() { int i=35,*z; z=f(&i); printf("%d",z); return 0; } void f(int*m) { return(m+2); }error in function calle...