Thursday 15 September 2011

c - Why is the output of this program 0? -


नीचे दिए गए प्रोग्राम का आउटपुट 0 है, लेकिन क्यों?

  #include & lt; stdio.h & gt; # शामिल करें & lt; conio.h & gt; Int main () {int x = 5; printf ( "% d", एक्स = 5!); getch (); }    

गलत 0 के रूप में मुद्रित किया गया है।

x! = 5 गलत है, इसलिए % d प्रिंट होगा 0 , अगर आप x == 5 < / कोड>, यह 1 प्रिंट करेगा।



No comments:

Post a Comment