Wednesday, October 30, 2013

Why they are using Hello world program?


 When you enroll yourself to any modern computer programming classes. They will taught you a program which gives the result as "Hello World"! (program result in the displaying the text as hello world).
why it show, is it any tradition to do so.

 Its all start with a book in 1970's on C program. Yes, 'THE C PROGRAMMING LANGUAGE', one of the bible of c program language. In that book, lot of example programs to describe the programming concepts and illustration on 'C', they used 'hello, world' in most of the time. That's the point in time where HELLO WORLD is become traditional in programming world.


(the authors of the book-Dennis Ritchie and Brian Kernighan)

Let see some of the hello world examples in popular programming language:

// in c program
main()
 {
        printf("hello, world");
 }


//in c++ program
main ()
{
  cout << "Hello World!";
}


//in java program
 public class HelloWorld {
        public static void main(String [] args) {
            System.out.println("Hello World!");
        }
    }


//in python
   print("Hello World!")



//in java script
console.log("Hello world!");


//in ruby
 puts "Hello World!"


//in c#
 System.Console.WriteLine("Hello World!");



Plan to see more on programmings in general as well as deeper in upcoming posts.



Post made by
newworld

2 comments:

newera said...

This blog contains numerous good articles. I m become the regular reader and waiting for the updates from the blogger. His name is mentioned as "newworld". Also, it is mentioned that he contribute more on computers, future technologies, renewable energy, economy, business and motivational posts.
I also seen some of his post regarding the analysis of computer virus and how to recover the computer from it.
I rated it as one of my favorite blogs.

newworld said...

Thanks :)

Please share with your friends and others. Sharing useful things is the real the way of making the world healthy.
Thanks for your feedback.

How Malware Uses GetThreadContext() to Detect Debuggers – And How to Bypass It?

  Introduction In the world of malware reverse engineering , understanding how malware detects debuggers is crucial. One of the most common ...