C Programs
A C program can vary from 3 lines to millions of lines and it should be written into one or more text files with extension ".c"; for example, hello.c. You can use "vi", "vim" or any other text editor to write your C program into a file. A simple program in C is here:#include <stdio.h> int main() { /* my first program in C */ printf("Hello, World! \n"); return 0; }
No comments:
Post a Comment