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.