Lesson 1 of 23

ನಿಮ್ಮ ಮೊದಲ C ಪ್ರೋಗ್ರಾಮ್

7 min 20 XP

C ಅನೇಕ ಭಾಷೆಗಳ ತಾಯಿ: Linux ಮತ್ತು Windows ನಂತಹ operating systems ಹಾಗೂ ಅಸಂಖ್ಯ embedded devices ಇದರಲ್ಲೇ ಬರೆಯಲಾಗಿದೆ. ಪ್ರತಿ C ಪ್ರೋಗ್ರಾಮ್ main() function ನಲ್ಲಿ ಆರಂಭವಾಗುತ್ತದೆ. printf() ಪರದೆಯ ಮೇಲೆ print ಮಾಡುತ್ತದೆ, ಅದಕ್ಕೆ #include <stdio.h> ಬೇಕು.

Example: edit me and press Run

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

\n ಎಂದರೆ ಹೊಸ ಸಾಲು; ಅದಿಲ್ಲದಿದ್ದರೆ ಮುಂದಿನ printf ಅದೇ ಸಾಲಿನಲ್ಲಿ ಮುಂದುವರಿಯುತ್ತದೆ. ಪ್ರತಿ statement semicolon ನಿಂದ ಮುಗಿಯುತ್ತದೆ, return 0; ಪ್ರೋಗ್ರಾಮ್ ಯಶಸ್ವಿಯಾಗಿ ಮುಗಿಯಿತು ಎಂದು system ಗೆ ಹೇಳುತ್ತದೆ.

Example: edit me and press Run

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

C case-sensitive: printf ಕೆಲಸ ಮಾಡುತ್ತದೆ, Printf ಇಲ್ಲ. Compile error ಕಂಡರೆ, ಮೊದಲು ಆ line number ನಲ್ಲಿ ಬಿಟ್ಟುಹೋದ semicolon ಹುಡುಕಿ.

Challenge

+20 XP

ಈ ಎರಡು ಸಾಲುಗಳನ್ನು ನಿಖರವಾಗಿ print ಮಾಡಿ: Hello C I can code!

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