Lesson 20 of 23

Pointers మరియు Arrays

10 min 35 XP

Array పేరు దాని మొదటి అంశం address, కాబట్టి a[i] మరియు *(a + i) ఒకటే. p++ తర్వాతి అంశానికి వెళ్తుంది (int కు 4 bytes ముందుకు).

Example: edit me and press Run

Output Loading C (first time takes a few seconds)
Press Run to see the result here.

Challenge

+35 XP

n మరియు n సంఖ్యలను చదవండి. Pointers మాత్రమే వాడి (a[i] కాదు; *(a + i) లేదా p++) array ను అక్కడికక్కడే తిరగేసి print చేయండి. Input: 5 1 2 3 4 5 Output: 5 4 3 2 1

Output Loading C (first time takes a few seconds)
Press Run to see the result here.