C ( Programming Language ) PSK Technologies By: Arti Sontakke An ISO 9001:2015 (QMS) Certified IT Company Computer Education | Software Development | Computer.

Slides:



Advertisements
Similar presentations
Character Arrays (Single-Dimensional Arrays) A char data type is needed to hold a single character. To store a string we have to use a single-dimensional.
Advertisements

What is shape function ? shape function is a function that will give the displacements inside an element if its displacement at all the node locations.
Single Variable and a Lot of Variables The declaration int k; float f; reserve one single integer variable called k and one single floating point variable.
Principles of Programming Fundamental of C Programming Language and Basic Input/Output Function 1.
CSE1301 Computer Programming Lecture 4: C Primitives I.
Software Development Method. Assignments Due – Homework 0, Warmup Reading – Chapter 2 –
C Programming Language 4 Developed in 1972 by Dennis Ritchie at AT&T Bell Laboratories 4 Used to rewrite the UNIX operating system 4 Widely used on UNIX.
1 Lecture 2  Input-Process-Output  The Hello-world program  A Feet-to-inches program  Variables, expressions, assignments & initialization  printf()
Three types of computer languages
1 Key Concepts:  Why C?  Life Cycle Of a C program,  What is a computer program?  A program statement?  Basic parts of a C program,  Printf() function?
1 Key Concepts:  Data types in C.  What is a variable?  Variable Declaration  Variable Initialization  Printf()  Scanf()  Working with numbers in.
1 ICS103 Programming in C Lecture 2: Introduction to C (1)
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 6P. 1Winter Quarter I/O in C Lecture 6.
Basic Input/Output and Variables Ethan Cerami New York
C programming Language and Data Structure For DIT Students.
Introduction to C language
C Programming Language tutorial Powered by:-
Chapter 3: Introduction to C Programming Language C development environment A simple program example Characters and tokens Structure of a C program –comment.
C - Input & Output When we are saying Input that means to feed some data into program. This can be given in the form of file or from command line. C programming.
By: Mr. Baha Hanene Chapter 4. LEARNING OUTCOMES This chapter will cover learning outcome no. 2 i.e. Use basic data-types and input / output in C programs.
Copyrights© 2008 BVU Amplify DITM Software Engineering & Case Tools Page:1 INTRODUCTION TO ‘C’ LANGUAGE Chapter 2.
By: Mr. Baha Hanene Chapter 3. Learning Outcomes We will cover the learning outcome 02 in this chapter i.e. Use basic data-types and input / output in.
Computer Science 210 Computer Organization Introduction to C.
Basic Input - Output. Output functions  printf() – is a library function that displays information on-screen. The statement can display a simple text.
Chapter 2 Getting Started in C Programming
CP104 Introduction to Programming File I/O Lecture 33 __ 1 File Input/Output Text file and binary files File Input/output File input / output functions.
Data structure and c K.S. Prabhu Letterer All Deaf Educational Technology.
Constants Numeric Constants Integer Constants Floating Point Constants Character Constants Expressions Arithmetic Operators Assignment Operators Relational.
C Programming language Basic Concepts Prepared By The Smartpath Information systems
Structure of a C program Preprocessor directive (header file) Program statement } Preprocessor directive Global variable declaration Comments Local variable.
Course Title: Object Oriented Programming with C++ instructor ADEEL ANJUM Chapter No: 03 Conditional statement 1 BY ADEEL ANJUM (MSc-cs, CCNA,WEB DEVELOPER)
Introduction to Programming
Lecture 1 cis208 January 14 rd, Compiling %> gcc helloworld.c returns a.out %> gcc –o helloworld helloworld.c returns helloworld.
CSCI 3133 Programming with C Instructor: Bindra Shrestha University of Houston – Clear Lake.
Functions: Part 2 of /11/10: Lecture 16 CMSC 104, Section 0101 John Y. Park 1.
Constants, Variables and Data types in C The C character Set A character denotes any alphabet, digit or special symbol used to represent information.
Chapter 8 Characters and Strings. Objectives In this chapter, you will learn: –To be able to use the functions of the character handling library ( ctype).
Department of Electronic & Electrical Engineering IO reading and writing variables scanf printf format strings "%d %c %f"
Silberschatz and Galvin  C Programming Language Kingdom of Saudi Arabia Ministry of Higher Education Al-Majma’ah University College of Education.
MAHENDRAN. Session Objectives Session Objectives  Discuss the Origin of C  Features of C  Characteristics of C  Current Uses of C  “C” Programming.
1 Types of Programming Language (1) Three types of programming languages 1.Machine languages Strings of numbers giving machine specific instructions Example:
BASIC C PROGRAMMING LANGUAGE TUTORIAL infobizzs.com.
Chapter 1 slides1 What is C? A high-level language that is extremely useful for engineering computations. A computer language that has endured for almost.
INTRODUCTION TO PROGRAMING System Development Mansoura October 2015.
From Algorithms to Programs Both are sets of instructions on how to do a task Algorithm: –talking to humans, easy to understand –in plain (English) language.
C language--Introduction. History 1970: B by Ken Thompson at AT&T Bell Lab 1972: C by Dennis Ritchie and Ken Tompson at At&T Bell Lab for UNIX 1978: “The.
Numbers in ‘C’ Two general categories: Integers Floats
Computer Science 210 Computer Organization
Chapter 1 Introduction to C Programming
C Language VIVA Questions with Answers
TMF1414 Introduction to Programming
Getting Started with C.
Introduction to C Programming Language
' C ' PROGRAMMING SRM-MCA.
Basic notes on pointers in C
Tejalal Choudhary “C Programming from Scratch” Pointers
Visit for more Learning Resources
Computer Science 210 Computer Organization
Chapter 2 - Introduction to C Programming
Introduction C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell.
Govt. Polytechnic,Dhangar
Introduction to C.
C programming Language
WEEK-2.
C – Programming Language
CSCE 206 Lab Structured Programming in C
Course Outcomes of Programming In C (PIC) (17212, C203):
Basic Programming Lab C.
Getting Started With Coding
Introduction to C Programming
Presentation transcript:

C ( Programming Language ) PSK Technologies By: Arti Sontakke An ISO 9001:2015 (QMS) Certified IT Company Computer Education | Software Development | Computer Sales & Services website:

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.)

C is a procedure oriented Structured programming language. C is a basic programming language Definition of 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” Constant in C Language

 There are two types of Data Types  Primary Data type  Secondary Data type DATA TYPES IN C LANGUAGE

Name Denoted By Format Specifier Size Integer int %d 2 Byte Float float%f 4 Byte Character char%c 1 Byte Primary Data Type

1)Pointer 2)Array 3)String 4)Structure Secondary Data Types

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. Variables Of c Language

Variables inside Memory  int num=67  float y=5.8  Char ch=‘k’ Num=67Y=5.8 Ch=‘k’

 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 Rules for declaring variable name

 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

Header files contain the definition of functions which are used in programming. # include # (Preprocessor directive) stdio (Standard input output) Header files/Prototypes in C

1)printf() This function is use to print the text message at the output screen. Eg: printf(“Hello and welcome to c program”);

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);

#include 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.

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 LanguageC++ CourseHTMLJavaPHPPython Advanced Hardware Advanced Network CCNAMCITP/ MCSELinuxCCNP Tally with GST Digital Marketing Computer Sales & Services We Designing

Follow us on