๐๐ง๐จ๐ฐ๐ฅ๐๐๐ ๐ ๐ฆ๐ข๐ ๐ก๐ญ ๐๐ ๐ฉ๐จ๐ฐ๐๐ซ, ๐๐ฎ๐ญ ๐ข๐ญโ๐ฌ ๐ฆ๐ฎ๐๐ก ๐ฆ๐จ๐ซ๐ ๐ฉ๐จ๐ฐ๐๐ซ๐๐ฎ๐ฅ ๐ฐ๐ก๐๐ง ๐ข๐ญโ๐ฌ ๐ฌ๐ก๐๐ซ๐๐! with this motto, I am ๐๐๐๐๐๐๐๐ ๐ ๐๐๐๐๐๐ ๐๐ ๐๐๐๐๐๐๐ ๐๐ข ๐๐๐๐ ๐๐๐๐๐ ๐๐ ๐๐๐ ๐ฒ ๐ป๐๐๐๐๐๐๐.
๐๐ฒ๐'๐ ๐๐ฒ๐ด๐ถ๐ป
To create a simple C program that prints "Hello, World" on the screen, use a text editor to create a new file
(e.g. hello.c โ the file extension must be .c) containing the following source code:
๐ต๐ฒ๐น๐น๐ผ.๐ฐ
#include <stdio.h>
int main(void)
{
puts("Hello, World");
return 0;
}
๐๐ฒ๐'๐ ๐น๐ผ๐ผ๐ธ ๐ฎ๐ ๐๐ต๐ถ๐ ๐๐ถ๐บ๐ฝ๐น๐ฒ ๐ฝ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ ๐น๐ถ๐ป๐ฒ ๐ฏ๐ ๐น๐ถ๐ป๐ฒ
#include <stdio.h>
This line tells the compiler to include the contents of the standard library header file stdio.h in the program.
๐๐ฒ๐ฎ๐ฑ๐ฒ๐ฟ๐ are usually files containing function declarations, macros, and data types, and you must include the header file before you use them. ๐ง๐ต๐ถ๐ ๐น๐ถ๐ป๐ฒ ๐ถ๐ป๐ฐ๐น๐๐ฑ๐ฒ๐ ๐๐๐ฑ๐ถ๐ผ.๐ต ๐๐ผ ๐ถ๐ ๐ฐ๐ฎ๐ป ๐ฐ๐ฎ๐น๐น ๐๐ต๐ฒ ๐ณ๐๐ป๐ฐ๐๐ถ๐ผ๐ป ๐ฝ๐๐๐().
Let's know more about headers.
๐ถ๐ป๐ ๐บ๐ฎ๐ถ๐ป(๐๐ผ๐ถ๐ฑ)
This line starts the definition of a function. It states the name of the function (main), the type and number of arguments it expects (void, meaning none), and the type of value that this function returns (int).
๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ ๐ฒ๐ ๐ฒ๐ฐ๐๐๐ถ๐ผ๐ป ๐๐๐ฎ๐ฟ๐๐ ๐ถ๐ป ๐๐ต๐ฒ ๐บ๐ฎ๐ถ๐ป() ๐ณ๐๐ป๐ฐ๐๐ถ๐ผ๐ป.
{
...
}
The curly braces are used in pairs to indicate where a block of code begins and ends. They can be used in a lot of ways, but in this case they indicate where the function begins and ends.
๐ฝ๐๐๐("๐๐ฒ๐น๐น๐ผ, ๐ช๐ผ๐ฟ๐น๐ฑ");
This line calls the puts() function to output text to standard output (the screen, by default), followed by a new line.
The string to be output is included within the parentheses.
"Hello, World" is the string that will be written on the screen. In C, ๐ฒ๐๐ฒ๐ฟ๐ ๐๐๐ฟ๐ถ๐ป๐ด ๐น๐ถ๐๐ฒ๐ฟ๐ฎ๐น ๐๐ฎ๐น๐๐ฒ ๐บ๐๐๐ ๐ฏ๐ฒ ๐ถ๐ป๐๐ถ๐ฑ๐ฒ ๐๐ต๐ฒ ๐ฑ๐ผ๐๐ฏ๐น๐ฒ ๐พ๐๐ผ๐๐ฒ "...".
In C programs, every statement needs to be terminated by a semi-colon (i.e. ;).
๐ฟ๐ฒ๐๐๐ฟ๐ป 0;
When we defined main(), we declared it as a function returning an int, meaning it needs to return an integer. In this example, we are returning the integer value 0, which is used to indicate that the program exited successfully.
๐๐ณ๐๐ฒ๐ฟ ๐๐ต๐ฒ ๐ฟ๐ฒ๐๐๐ฟ๐ป 0; ๐๐๐ฎ๐๐ฒ๐บ๐ฒ๐ป๐, ๐๐ต๐ฒ ๐ฒ๐ ๐ฒ๐ฐ๐๐๐ถ๐ผ๐ป ๐ฝ๐ฟ๐ผ๐ฐ๐ฒ๐๐ ๐๐ถ๐น๐น ๐๐ฒ๐ฟ๐บ๐ถ๐ป๐ฎ๐๐ฒ.
follow Shalu Anand for more :)
And the excitement for the upcoming year will start again today :) ๐๐ช๐น๐น๐ ๐๐ฑ๐ฑ๐ช๐ฝ๐ฑ ๐น๐พ๐ณ๐ช Chhath Puja is dedicated to Sun and his wives Usha, Sandhya in order to thank them for their existence which is prospering life on earth, and to request for granting certain wishes. The most important thing is that, this Puja doesnโt involve idol worship.
"๐๐ก๐๐ซ๐ข๐ง๐ ๐ค๐ง๐จ๐ฐ๐ฅ๐๐๐ ๐ ๐ข๐ฌ ๐ง๐จ๐ญ ๐๐๐จ๐ฎ๐ญ ๐ ๐ข๐ฏ๐ข๐ง๐ ๐ฉ๐๐จ๐ฉ๐ฅ๐ ๐ฌ๐จ๐ฆ๐๐ญ๐ก๐ข๐ง๐ , ๐จ๐ซ ๐ ๐๐ญ๐ญ๐ข๐ง๐ ๐ฌ๐จ๐ฆ๐๐ญ๐ก๐ข๐ง๐ ๐๐ซ๐จ๐ฆ ๐ญ๐ก๐๐ฆ. ๐๐ก๐๐ญ ๐ข๐ฌ ๐จ๐ง๐ฅ๐ฒ ๐ฏ๐๐ฅ๐ข๐ ๐๐จ๐ซ ๐ข๐ง๐๐จ๐ซ๐ฆ๐๐ญ๐ข๐จ๐ง ๐ฌ๐ก๐๐ซ๐ข๐ง๐ .