Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 1. Console Thyself

Chapter 1. Console Thyself

In that succinct and (perhaps consequently) much-beloved classic tutorial The C Programming Language, authors Brian Kernighan and Dennis Ritchie begin by presenting what has come to be known as the hello-world program[1]:

[1] Brian W. Kernighan and Dennis M. Ritchie, The C Programming Language, 2nd ed. (Englewood Cliffs, NJ: Prentice Hall, 1988). The hello-world program in the first edition (1978) was the same but without the #include statement.

#include <stdio.h>

main()
{
     printf("hello, world\n");
}


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial