Lesson 4 of 23

Operators ಮತ್ತು Type Casting

9 min 20 XP

ಎರಡು ints ಭಾಗಿಸಿದರೆ ದಶಮಾಂಶ ಭಾಗ ಹೋಗುತ್ತದೆ: 7 / 2 ಎಂದರೆ 3. % ಶೇಷ ಕೊಡುತ್ತದೆ: 7 % 2 ಎಂದರೆ 1. ದಶಮಾಂಶ ಉತ್ತರ ಬೇಕಾದರೆ (double) ನಿಂದ cast ಮಾಡಿ.

Example: edit me and press Run

Output Loading C (first time takes a few seconds)
Press Run to see the result here.

++i ಮೊದಲು ಹೆಚ್ಚಿಸಿ ನಂತರ value ಕೊಡುತ್ತದೆ; i++ ಹಳೆಯ value ಕೊಟ್ಟು ನಂತರ ಹೆಚ್ಚಿಸುತ್ತದೆ. ಬಹಳ ಜನಪ್ರಿಯ C interview ಪ್ರಶ್ನೆ.

Challenge

+20 XP

ಸೆಕೆಂಡುಗಳ ಸಂಖ್ಯೆ ಓದಿ ಅದನ್ನು hours:minutes:seconds ಆಗಿ print ಮಾಡಿ. Input: 3725 → Output: 1:2:5

Output Loading C (first time takes a few seconds)
Press Run to see the result here.