Question: The declaration int * pi; defines the variable pi as a / an Bo luk 1 . Bo luklar doldur, ilgili metni oku. pointer to

The declaration int *pi; defines the variable pi as a/an Boluk 1. Boluklar doldur, ilgili metni oku.
pointer
to a/an Boluk 2. Boluklar doldur, ilgili metni oku.
integer
.
The declaration char name[]=abc; defines the variable name as a/an Boluk 3. Boluklar doldur, ilgili metni oku.
array
of Boluk 4. Boluklar doldur, ilgili metni oku.
characters
initialized with the sting Boluk 5. Boluklar doldur, ilgili metni oku.
"abc"
.
The declaration char *name =abc; defines the variable name as a/an Boluk 6. Boluklar doldur, ilgili metni oku.
pointer
to a/an Boluk 7. Boluklar doldur, ilgili metni oku.
character
initialized with the Boluk 8. Boluklar doldur, ilgili metni oku.
address
of the string constant Boluk 9. Boluklar doldur, ilgili metni oku.
"abc"
.
Given the declarations int a[3]; int *p;
the statement p=a; initializes the Boluk 10. Boluklar doldur, ilgili metni oku.
pointer
p with the Boluk 11. Boluklar doldur, ilgili metni oku.
address
of a[ Boluk 12. Boluklar doldur, ilgili metni oku.
0
].
the statement p=&a[1]; initializes the Boluk 13. Boluklar doldur, ilgili metni oku.
pointer
p with the Boluk 14. Boluklar doldur, ilgili metni oku.
address
of a[ Boluk 15. Boluklar doldur, ilgili metni oku.
1
] then the next statement *(p+1)=5; assigns to the array element a[ Boluk 16. Boluklar doldur, ilgili metni oku.
2
] the integer value Boluk 17. Boluklar doldur, ilgili metni oku.
5
.
The statement *(p+i)=5; is equivalent to the statement a[ Boluk 18. Boluklar doldur, ilgili metni oku.
i
]=5;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!