Lesson 20 of 23
Pointers மற்றும் ArraysPointers and Arrays
10 min 35 XP
Array பெயர் அதன் முதல் உறுப்பின் address. ஆகவே a[i] என்பது *(a + i). p++ அடுத்த உறுப்புக்குச் செல்லும் (int-க்கு 4 bytes முன்னே).
An array's name is the address of its first element, so a[i] is the same as *(a + i). p++ moves to the next element (4 bytes ahead for an int).
Example: edit me and press Run
Press Run to see the result here.