170 likes | 184 Views
PSK Technologies Nagpur provides Training and Internship in Software Development Course C Language to know more about this course visit our website https://www.psktechnologies.co.in
E N D
C (Programming Language) PSKTechnologies By: ArtiSontakke 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
History of C • 1967 (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/
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” Constant in C Language 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 NameDenoted By Format SpecifierSize Integer int %d 2 Byte Float float %f 4 Byte Character char %c 1 Byte https://www.psktechnologies.co.in/
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/
printf() This function is use to print the text message at the output screen. Eg: printf(“Hello and welcome to c program”); 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. https://www.psktechnologies.co.in/
Thank You PSKTechnologies Follow us on https://www.psktechnologies.co.in/