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.