i[3] or 3[i] मैं [3] या 3 [i]
Last night a while writing a very basic program in 'C' language, I came across something weird. कल रात एक समय में 'सी' की भाषा एक बहुत ही बुनियादी कार्यक्रम लेखन, मैं कुछ अजीब भर में आया था. Basically in 'C' if you want to display the value of some element in an array it is denoted as i [no. मूल रूप में 'सी' अगर तुम मुझे के रूप में चिह्नित है एक सरणी में कुछ तत्व के मूल्य प्रदर्शन करना चाहता हूँ [नहीं. of index], where 'i' is name of the array and in square bracket you write the index number, which u want to display. सूचकांक के], जहां 'मैं' की सरणी का नाम है और आप जो यू प्रदर्शन करना चाहते सूचकांक, लिखने वर्ग कोष्ठक में है.
The mistake I made was I wrote the index_number[name of array] ( Wrote 3[i] instead of i[3] ) and it gave the same result as it should have given, if I had written it correctly. के रूप में दिया जाना चाहिए था अगर मैं सही ढंग से लिखा था मैं बनाया गलती मैं index_number [सरणी के नाम] ने लिखा था (3 लिखा [मैं] के बजाय [3]) और, एक ही परिणाम दे दी है. Check the screenshot shown below. इस स्क्रीनशॉट नीचे दिखाया जाँचें.
Code: कोड:

Output आउटपुट

Now I m wondering how does that happen, I mean whatever I have read about 'C' programming as yet, says i[3] is the method to access the element at 3rd index, in fact I have not ever came across any notation of the form 3[i], so what's the issue, have you ever seen this, why does this happen, any idea? अब मैं यह कैसे होता है सोच मी, मुझे लगता है मैं अभी तक के रूप में सी 'प्रोग्रामिंग' के बारे में जो कुछ पढ़ा है मतलब है, मैं कहता है [3] 3. सूचकांक पर तत्व का उपयोग करने का तरीका है, मैं कभी नहीं किया है किसी भी अंकन के पार आया वास्तव में के फार्म 3 [i], तो क्या इस मुद्दे है, तुम कभी, ये क्यों होता है यह देखा है, कोई भी विचार?
If you want to download this code and see it yourself, यदि आप इस कोड को डाउनलोड करना चाहते हैं और अपने आप इसे देख, here is the file यहाँ फ़ाइल है , we have uploaded it for you. , हम आपके लिए इसे अपलोड कर दिया है.
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |

Posted on 9th April 2008 by 9 अप्रैल 2008 पर द्वारा पोस्ट Manav Mishra मानव मिश्र , here to write articles about things which are somehow related to computers, internet (and at times, may be, to blogging as well). , यहाँ, इंटरनेट, जो किसी भी कंप्यूटर से जुड़े हुए हैं चीजों के बारे में लेख लिखने के लिए (और समय पर, के रूप में अच्छी तरह से ब्लॉगिंग के लिए) हो सकता है. He wants to make an Identity for himself, he loves, testing new softwares and services which can really help to improve the productivity of individual. All posts by वह खुद के लिए एक पहचान बनाने के लिए, वह है, जो वास्तव में व्यक्तिगत की उत्पादकता में सुधार लाने के लिए मदद कर सकते हैं नया सॉफ्टवेयर और सेवाओं का परीक्षण प्यार करता है चाहता है. सभी पदों से Manav Mishra मानव मिश्र | Connect with me @ | कनेक्ट मेरे साथ @ Twitter चहचहाना | | Stumble ठोकर | Need more help? | और अधिक मदद की जरूरत है? Ask your Questions at our पर अपने प्रश्न पूछें हमारे Support Center सहायता केंद्र




























Free Email Subscription
Leave your response! आपकी प्रतिक्रिया छोड़ दो!