Section 1.1 Getting Started

Hello World

Question

The only way to learn a new programming language is by writing programs in it. The first program to write is the same for all languages: Print the words

Solution

/* First Program in KandR, the hello,world */

#include<stdio.h>
int main(void)
{
    printf("hello,world\n");
}

Run this
Comments by Disqus