c++ - If i have a structure x , then does the statement struct x e={"tiger"} means? -


वहाँ एक संरचना x हो तो उसके ऑब्जेक्ट की घोषणा struct xe = {"tiger"} < / कोड> कोई अर्थ रखता है।

  void main () {struct x {char नाम [20]; इंट उम्र; फ़्लोट सैल; }; Struct x ई = {"बाघ"}; अदालत के & lt; & lt; e.age & lt; & lt; e.sal; getch (); }  

एक छोटा सा प्रोग्राम है और यह 00 के रूप में आउटपुट का उत्पादन करता है। मेरा प्रश्न संरचना दिए गए एक्स के ऑब्जेक्ट ई की घोषणा के संबंध में है!

0
हो जाते हैं।)

यह सी और सी ++ के सभी संस्करणों में सत्य है।


Comments

Popular posts from this blog

c++ - C/pp Sockets, recv()/send() works only under gdb -

GO: Serve static pages -

objective c - How to open front/back camera at the same time in iOS developing? -