Challenge - can you print hello world in the command line without using the char w?
windows - Running the Hello World C code from command prompt? - Stack Overflow
Run Hello world from node.js command prompt in windows 7 - Stack Overflow
command prompt named "Hello World" appears everytime i boot up my pc.
I don't have an answer for you, but this exact thing recently started happening on my PC as well recently.
More on reddit.comVideos
The goal is Linux, but you can try Windows as well.
It shouldn't be a hard challenge, but it would be nice to see multiple creative solutions and learn new tricks.
Optional link: https://platform.intervee.io/challengeinfocard/bash_world
(You can solve it on your machine if you prefer)
Disclaimer: I built it, and I plan to write a post here with the most creative solutions. I already did it in c_programming sub-reddit, it was fun with ~100 comments
I want to create the command hello without having to create a file
You can use doskey.
Open a cmd shell
Enter the following command:
doskey hello=echo Hello world!Run the command:
hello
Example:
F:\test>doskey hello=echo Hello world!
F:\test>hello
Hello world!
F:\test>
Further Reading
- doskey - Recall and edit commands at the DOS prompt, and create macros. You cannot run a Doskey macro from a batch file.
You can create an Environment variable, and then call it using %hello%





You need to save the file as test.c and then compile it to test.exe. The exact details of how you compile it will depend on what C compiler you have installed, but for cygwin or MinGW it would be:
$ gcc -Wall test.c -o test.exe
If you don't have a compiler installed yet and just want to quickly try running a small C program then a further alternative is to use a site such as codepad.org or ideone.com where you can type (or paste) your code and run it online.
A few things to help you learn C in an easier manner:
- First, you say you wrote it in Notepad. Bad choice for learning C. Notepad does not support Syntax highlighting.
- Second, C needs to be compiled, on windows you have a few choice for compiler, the first would be MinGW which is Free.
- Third, and IDE that is MinGW aware and C syntax aware is also needed. Geany is simple enough but is very smart and full of sweets.
Finally, see the tutorial here, how to get them all working: geany+mingw on windows.
One more thing, totally unrelated to C, or maybe it does.
I bluntly assume that C is your first programming experience, or that you are still doing first steps in programming.
C as a first language is VERY BAD. It is not forgiving, and most compilers pass things, but the code will crash, not letting you know what you did wrong.
Consider learing other languages first, a few good choices would be:
- Python
- Lua
- Ruby
Node.exe is application that can be used to run code from file, or to be ran by it self that way it will behave like live-terminal.
Once you run node.exe like you did in second example, you will end up in node environment and everything from there is not cmd at all, but JS.
If you type: node example.js that will call node environment and will execute file in that environment.
Although, running node.exe is the same as typing node in cmd.
in node REPL you could type
Copyrequire('d:\\BNB\\test')
that shuold run your file..