Pointer Arithmetic पॉइंटर अरिथमेटिक
We can perform arithmetic operations on pointers, such as increment (++) and decrement (--), which update the value of a pointer variable according to the data type to which it points. This is known as pointer arithmetic. हम पॉइंटर पर इन्क्रीमेंट (++) एवं डीक्रीमेंट (--) जैसे अरिथमेटिक ऑपरेशन लागू कर सकते हैं, जो पॉइंटर वेरिएबल की वैल्यू को उसके द्वारा पॉइंट किए जाने वाले डाटा टाइप के अनुसार अपडेट करते हैं। इसे पॉइंटर अरिथमेटिक (Pointer Arithmetic) कहा जाता है। In the following example, there are three pointers that point to character, integer, and float type arrays, respectively. निम्न उदाहरण में तीन पॉइंटर वेरिएबल हैं, जो क्रमशः करैक्टर, इन्टिजर एवं फ्लोट डाटा टाइप के ऐरे को पॉइंट करते हैं। char name[10], *p; int x[10], *q; float per[5], *r; p = name; q = x; r = per; p++; q++; r++; q++; p++; --r; r++; q++; p--; In the above example: Pointer p increases or decreases by 1 byte. Pointer q increases or decreases by 2 bytes. Pointer r increases or decreases by 4 bytes. उपरोक्त उदाहरण म...