Question

Explain the meaning and output of each line of the following in the context of programming:

(i) int i; int x, y, z=31;

(ii) x = y / 2;

(iii) z=x*2;

(iv) if (z==y) (v) printf("y contains an EVEN number"); (vi)else printf("y contains an ODD number")

 

21 Jan 2021
Answer :
Word Count : 146

(i) `int i; int x, y, z=31;`: This line declares integer variables `i`, `x`, `y`, and `z`. Variable `z` is initialized with the value 31.

(ii) `x = y / 2;`: This line calculates the integer ________ ___ __________ ________ _______.
____ ___ _______ ____ _____ ______.
_____ _______ ___ ________ _____ ________.
________ _________ ___ ________ _________.
__________ _________ _________ ______ _____ ______ _________ _________ __________ __________.
_________ _______ _______ ______ _____ ___ __________ _____ ____ ________ ______ _______.
_______ _________ _____ _______ ___.
__________ ______ ________ ________ __________ __________ ____ _______ ______ ______ _______ _____.
_______ ____ ____ ______ ________ __________ __________.
________ _____ ___ _____ ______ __________.
_______ _________ _______ __________ _______ ______ ___ _________ __________.
______ ______ _________ ____ _______ _____ _________ _______ ______ ________ __________.
__________ __________ ___ ______ _______ ______ _____ ____ _________ _________ ______.
________ _________ ________ _________ _____.
Get Full Answer on WhatsApp

IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Explain the meaning and output of each line of the following in the co
🟢
WhatsApp Chat Fast live messaging
Email Us Business enquiries & support