Lesson 1 of 23

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

7 min 20 XP

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

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

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.