Monday, 1 July 2019

C language Introduction


First Program in C Language



Hello Friends ,I am aarti . I love programming languages such as C,C++,Java etc…
I like to code the program . So,I am sharing my knowledge of programming languages with you.I will try to give all essential details of computer language in depth with practical demos in a very simple language.
First and Foremost , We will discuss about C programming Language.
C Programming Language  is the Procedure-Oriented Language.It is high level language.It provides a a very large  library which contains numerous functions.Each function performs a specific task independently.It is Case-Sensitive language.All C programs  consists of one or more functions.One function that must be present in every  C program is main() function. When the C program executes the main() function first called up. The main() is the keyword ,we can not use for naming the variables. We write the main() function as :
Main Method


Here, we see ‘void’ keyword .’void ’ means no return type.It holds nothing means it would not return any value .
Lets see how to display a message on the screen.


First program in c







Here,we see two header files ‘#include<stdio.h>’ and ‘#include<conio.h>’ .These are pre-processor directives.C language offers pre-processor directives.These are initialized at the beginning of the program before the main().It always begins with a # symbol.It is always declared at the beginning before the main().It contains stdio.h header files which contains information that allows us to use printf(),scanf() etc….It is automatically handled by the C Compiler.And,conio.h header files allows us to use getch() to hold the output screen until pressed a key.

printf() : This function prints the words on the output screen .The text to be printed is enclosed in double quotes.
Lets see the output
Output



No comments:

Post a Comment

Recent Post

Python Project | Banking System | Project on Banking System using python

  PYTHON PROJECT Banking System import csv import pandas as pd import matplotlib.pyplot as plt import sys import datetime found=False def ne...