Lesson 1 of 23

உங்கள் முதல் C ProgramYour First C Program

7 min 20 XP

C, பல மொழிகளின் தாய் மொழி. Linux, Windows போன்ற operating systems-ம் embedded devices-ம் C-ல் எழுதப்பட்டவை. ஒவ்வொரு C program-ம் main() function-லிருந்து தொடங்கும். printf() திரையில் காட்டும்; அதற்கு #include <stdio.h> தேவை.

C is the mother of many languages: operating systems like Linux and Windows and countless embedded devices are written in it. Every C program starts at the main() function. printf() prints to the screen and needs #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 என்பது புதிய வரி (new line). அதை எழுதாவிட்டால் அடுத்த printf அதே வரியில் தொடரும். ஒவ்வொரு statement-ம் ; உடன் முடிய வேண்டும். return 0; என்றால் program வெற்றிகரமாக முடிந்தது.

\n means new line; without it the next printf continues on the same line. Every statement ends with a semicolon, and return 0; tells the system the program finished successfully.

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 வந்தால் வரி எண்ணைப் பார்த்து ; விடுபட்டுள்ளதா என்று சோதியுங்கள்.

C is case-sensitive: printf works, Printf doesn't. When you see a compile error, check the line number for a missing semicolon first.

Challenge

+20 XP

இந்த இரண்டு வரிகளையும் சரியாக print செய்யுங்கள்: Hello C I can code!

Print these two lines exactly: Hello C I can code!

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