C (Programming Language) PSK Technologies By: Arti Sontakke
An ISO 9001:2015 (QMS) Certified IT Company Computer Education | Software Development | Computer Sales & Services Email: info@psktechnologies.co.in website: www.psktechnologies.co.in
1967
History of C
(BCPL (Basic Combined Programming Language) Martin Richard at Cambridge University)
1970 (B - Ken Thompson at AT & T's Bell Laboratories.)
1972 (C - Dennis Ritchie at AT & T' Bell Laboratory.)
Definition of c Language C is a procedure oriented Structured programming language . C is a basic programming language
https://www.psktechnologies.co.in/
Constant in C Language Numeric Constant Integer constant Eg:1,5,67,346 etc. Float constant Eg:2.3,8.45,6.8 etc. Character Constant Eg: ’a’ , ’x’ , ‘g’ etc. String Constant Eg:”Hello” ,”good” https://www.psktechnologies.co.in/
DATA TYPES IN C LANGUAGE There are two types of Data Types Primary Data type Secondary Data type
https://www.psktechnologies.co.in/
Primary Data Type Name Integer
Denoted By int
Format Specifier %d 2 Byte
Float
float
%f
4 Byte
Character char
%c
1 Byte
https://www.psktechnologies.co.in/
Size
Secondary Data Types 1)Pointer 2)Array 3)String 4)Structure
https://www.psktechnologies.co.in/
Variables Of c Language Variable is a name given to a specific memory location . Variable is use to hold the values , variables are always used with data types. Variable name can be anything.
https://www.psktechnologies.co.in/
Variables inside Memory
int num=67
float y=5.8
Char ch=‘k’
Num=67
Y=5.8
Ch=‘k’
https://www.psktechnologies.co.in/
Rules for declaring variable name The maximum length of variable name is 8 characters and minimum is 1. Variable name can contain numeric values and under score( _ ). Eg: int num = 6 num_one num23 num_1 https://www.psktechnologies.co.in/
The first letter of variable name should be start with character Eg: × 1num × _ch Variable name can not contain spaces and points Eg: × num one × num.one https://www.psktechnologies.co.in/
Header files/Prototypes in C Header files contain the definition of functions which are used in programming.
# include<stdio.h> # (Preprocessor directive) stdio (Standard input output) https://www.psktechnologies.co.in/
1) printf() This function is use to print the text message at the output screen. Eg: printf(â&#x20AC;&#x153;Hello and welcome to c programâ&#x20AC;?);
https://www.psktechnologies.co.in/
2)scanf() This function is use to scan the values. Eg: int num; float x; char ch; scanf(“%d”,&num); //Here:& gives address scanf(“%f”,&x); scanf(“%c”,&ch); Scanf(“%d%f%c”,&num,&x,&ch); https://www.psktechnologies.co.in/
#include<conio.h> conio (console input/output) clrscr() To clear the previous output screen getch() To print all characters at the output screen and to hold the output screen.
https://www.psktechnologies.co.in/
PSK TECHNOLOGIES Nagpur is a IT Education and Training provider Company in India. PSK Technologies excellence as a Software, Hardware & Networking Development. We are well known as the No. 1 IT Training & Software Development | Sales & Services Digital Marketing Company in Nagpur. C Language
C++ Course
HTML
Java
PHP
Python
Advanced Ha rdware
Advanced Ne twork
CCNA
MCITP/ MCSE
Linux
CCNP
Tally with GS Digital Marke T ting
Computer We Designing Sales & Serv ices https://www.psktechnologies.co.in/
Thank You PSK Technologies Follow us on
https://www.psktechnologies.co.in/