๐๐ง๐จ๐ฐ๐ฅ๐๐๐ ๐ ๐ฌ๐ก๐๐ซ๐๐ ๐ข๐ฌ ๐ค๐ง๐จ๐ฐ๐ฅ๐๐๐ ๐ ๐ฌ๐ช๐ฎ๐๐ซ๐๐!
with this ,
๐๐ฒ๐'๐ ๐๐ฒ๐ด๐ถ๐ป ๐ฐ๐ข๐ญ๐ก ๐๐๐ฒ 2:
๐๐๐๐๐๐ ๐๐ ๐๐๐๐๐๐๐ ๐๐ข ๐๐๐๐ ๐๐๐๐๐ ๐๐ ๐๐๐ ๐ฒ ๐ป๐๐๐๐๐๐๐.
โก๏ธ๐๐๐ข๐ญ๐ข๐ง๐ ๐ญ๐ก๐ ๐ฉ๐ซ๐จ๐ ๐ซ๐๐ฆ
Simple text editors include vim or gedit on Linux, or Notepad on Windows. Cross-platform editors also include
Visual Studio Code or Sublime Text.
The editor must create plain text files, not RTF or other any other format.
โก๏ธ๐๐จ๐ฆ๐ฉ๐ข๐ฅ๐ข๐ง๐ ๐๐ง๐ ๐ซ๐ฎ๐ง๐ง๐ข๐ง๐ ๐ญ๐ก๐ ๐ฉ๐ซ๐จ๐ ๐ซ๐๐ฆ
To run the program, this source file (hello.c) first needs to be compiled into an executable file (e.g. hello on Unix/Linux system or hello.exe on Windows). This is done using a compiler for the C language.
See more about compiling
โก๏ธ๐๐จ๐ฆ๐ฉ๐ข๐ฅ๐ ๐ฎ๐ฌ๐ข๐ง๐ ๐๐๐
GCC (GNU Compiler Collection) is a widely used C compiler. To use it, open a terminal, use the command line to
navigate to the source file's location and then run:
gcc hello.c -o hello
If no errors are found in the source code (hello.c), the compiler will create a binary file, the name of which is
given by the argument to the -o command line option (hello). This is the final executable file.
We can also use the warning options -Wall -Wextra -Werror, which help to identify problems that can cause the
program to fail or produce unexpected results. They are not necessary for this simple program but this is way of adding them:
gcc -Wall -Wextra -Werror -o hello hello.c
โก๏ธ๐๐ฌ๐ข๐ง๐ ๐ญ๐ก๐ ๐๐ฅ๐๐ง๐ ๐๐จ๐ฆ๐ฉ๐ข๐ฅ๐๐ซ
To compile the program using clang you can use the:
clang -Wall -Wextra -Werror -o hello hello.c
By design, the clang command line options are similar to those of GCC.
โก๏ธ๐๐ฌ๐ข๐ง๐ ๐ญ๐ก๐ ๐๐ข๐๐ซ๐จ๐ฌ๐จ๐๐ญ ๐ ๐๐จ๐ฆ๐ฉ๐ข๐ฅ๐๐ซ ๐๐ซ๐จ๐ฆ ๐ญ๐ก๐ ๐๐จ๐ฆ๐ฆ๐๐ง๐ ๐ฅ๐ข๐ง๐
If using the Microsoft cl.exe compiler on a Windows system that supports Visual Studio and if all environment variables are set, this C example may be compiled using the following command
which will produce an executable hello.exe within the directory the command is executed in (There are warning options such as /W3 for cl, roughly analogous to -Wall, etc for GCC or clang).
cl hello.c
โก๏ธ๐๐ฑ๐๐๐ฎ๐ญ๐ข๐ง๐ ๐ญ๐ก๐ ๐ฉ๐ซ๐จ๐ ๐ซ๐๐ฆ
Once compiled, the binary file may then be executed by typing ./hello in the terminal. Upon execution, the compiled program will print Hello, World, followed by a newline, to the command prompt.
FOLLOW Shalu Anand :)
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.
"๐๐ก๐๐ซ๐ข๐ง๐ ๐ค๐ง๐จ๐ฐ๐ฅ๐๐๐ ๐ ๐ข๐ฌ ๐ง๐จ๐ญ ๐๐๐จ๐ฎ๐ญ ๐ ๐ข๐ฏ๐ข๐ง๐ ๐ฉ๐๐จ๐ฉ๐ฅ๐ ๐ฌ๐จ๐ฆ๐๐ญ๐ก๐ข๐ง๐ , ๐จ๐ซ ๐ ๐๐ญ๐ญ๐ข๐ง๐ ๐ฌ๐จ๐ฆ๐๐ญ๐ก๐ข๐ง๐ ๐๐ซ๐จ๐ฆ ๐ญ๐ก๐๐ฆ. ๐๐ก๐๐ญ ๐ข๐ฌ ๐จ๐ง๐ฅ๐ฒ ๐ฏ๐๐ฅ๐ข๐ ๐๐จ๐ซ ๐ข๐ง๐๐จ๐ซ๐ฆ๐๐ญ๐ข๐จ๐ง ๐ฌ๐ก๐๐ซ๐ข๐ง๐ .