My First C Program. I can't wait to execute... Let's Begin Before we begin, let's talk about program. First we make simple program which prints a simple message as you want. I Like to print 'Hello Devil' on my Screen. One more - The File which is stored our program is saved with '.c' extention. For ex, I want to save my File as 'HelloDevil'. so, i simply put '.c' after the name Like 'HelloDevil.c' Let's Start... Program - HelloDevil.c #include<stdio.h> #include<conio.h> void main() { clrscr(); printf("Hello Devil."); getch(); } Output: Hello Devil. Program Explaination: The First main thing is to add header files, without it we can't run our program. The first Header file we uses is a <stdio.h> which is a standard input output header file which contains all the functions related to input and output. 2nd is <conio.h> is used for Console input and out...
Comments
Post a Comment