1,086 views
1 1 vote

1 Answer

0 0 votes
why  &a+1 it can point to 2 element in the array I mean  A[1] as &a gives base address and &a+1 gives second element address

type casting to integer is not required???
Position:
Show:

Related questions

3 3 votes
0 0 answers
994
994 views
nishitshah asked Jan 26, 2018
994 views
Answer given is option C. How ?I gather that the character pointer will point to the first byte of the integer whose value is 255.But after that what should be the soluti...
8 8 votes
1 1 answer
259
259 views
GO Classes asked Jun 19
259 views
What is the output of the following code?#include <stdio.h void fun(int a[], int *p) { a = a + 5; *(p + 2) = *(p + 2) + 10; p++; *p = *p + 1; } int main() { int arr[] =...
6 6 votes
1 1 answer
206
206 views
GO Classes asked Jun 19
206 views
What is the output of the following code?#include <stdio.h int main() { int arr[] = {10, 20, 30}; int *p = arr; printf("%d %d", *p, *(arr + 2)); return 0; }$\texttt{10 20...
7 7 votes
1 1 answer
218
218 views
GO Classes asked Jun 6
218 views
What is the output of the following code?#include <stdio.h void change(int *p, int *q) { *p = *p + 4; *q = *p + *q; p = q; *p = *p - 3; } int main() { int a = 6, b = 10; ...