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.