This document provides an introduction to the C programming language. It discusses what a programming language and computer program are, and defines key concepts like algorithms, flowcharts, variables, data types, constants, keywords, and instructions. It also outlines the basic structure of a C program, including header files, functions, comments, and compilation/execution. The document explains the different character sets and components used to write C programs, such as variables, arithmetic operations, and control structures.
The document discusses one-dimensional and multidimensional arrays in C. It covers declaring and initializing arrays, accessing array elements using subscripts, and built-in functions like sizeof that operate on arrays. It also introduces variable-length arrays, a C99 feature that allows arrays to have non-constant lengths specified at runtime rather than compilation. Examples are provided for common array operations like copying, initializing, and traversing arrays with for loops. Restrictions on variable-length arrays and potential issues with goto statements are also noted.
- Bjarne Stroustrup is credited as the creator of C++.
- There are different types of tokens in C++ including keywords, identifiers, variables, constants, punctuators, and operators.
- Key concepts discussed include variables, constants, data types, expressions, input/output, control statements like if/else and loops.
- The document provides an overview of many fundamental C++ concepts in a structured manner.
The document discusses various operators in C language including arithmetic, relational, logical, bitwise, assignment and conditional operators. It provides examples of using each operator and the expected output. The order of operations and associativity rules are also covered. Various format specifiers used in printf and scanf functions are explained along with examples.
Constants Variables Datatypes by Mrs. Sowmya JyothiSowmyaJyothi3
C provides various data types to store different types of data. The main data types are integer, float, double, and char. Variables are used to store and manipulate data in a program. Variables must be declared before use, specifying the data type. Constants are fixed values that don't change, and can be numeric, character, or string values. Symbolic constants can be defined to represent constant values used throughout a program. Input and output of data can be done using functions like scanf and printf.
The document outlines key concepts in C programming including data types, tokens, keywords, identifiers, constants, variables, and scopes. It discusses the five fundamental data types in C (integer, floating-point, double, character, void), tokens like keywords and identifiers, common keywords and their meanings, rules for identifiers, how variables are declared and initialized, what constants are (fixed values that don't change), and the four scopes in C.
The document discusses one-dimensional and multidimensional arrays in C. It covers declaring and initializing arrays, accessing array elements using subscripts, and built-in functions like sizeof that operate on arrays. It also introduces variable-length arrays, a C99 feature that allows arrays to have non-constant lengths specified at runtime rather than compilation. Examples are provided for common array operations like copying, initializing, and traversing arrays with for loops. Restrictions on variable-length arrays and potential issues with goto statements are also noted.
- Bjarne Stroustrup is credited as the creator of C++.
- There are different types of tokens in C++ including keywords, identifiers, variables, constants, punctuators, and operators.
- Key concepts discussed include variables, constants, data types, expressions, input/output, control statements like if/else and loops.
- The document provides an overview of many fundamental C++ concepts in a structured manner.
The document discusses various operators in C language including arithmetic, relational, logical, bitwise, assignment and conditional operators. It provides examples of using each operator and the expected output. The order of operations and associativity rules are also covered. Various format specifiers used in printf and scanf functions are explained along with examples.
Constants Variables Datatypes by Mrs. Sowmya JyothiSowmyaJyothi3
C provides various data types to store different types of data. The main data types are integer, float, double, and char. Variables are used to store and manipulate data in a program. Variables must be declared before use, specifying the data type. Constants are fixed values that don't change, and can be numeric, character, or string values. Symbolic constants can be defined to represent constant values used throughout a program. Input and output of data can be done using functions like scanf and printf.
The document outlines key concepts in C programming including data types, tokens, keywords, identifiers, constants, variables, and scopes. It discusses the five fundamental data types in C (integer, floating-point, double, character, void), tokens like keywords and identifiers, common keywords and their meanings, rules for identifiers, how variables are declared and initialized, what constants are (fixed values that don't change), and the four scopes in C.
The document defines various tokens in the C programming language including keywords, identifiers, constants, string literals, operators, data types, and variables. It discusses the basic data types like integers, floating point numbers, and characters. It also covers topics like declarations, global and local variables, type conversions, precedence and order of evaluation, and various operators used in C.
The document provides information about Bjarne Stroustrup, the creator of C++ programming language, and introduces some basic concepts of C++ like tokens, keywords, identifiers, literals, character set, and a simple "Hello World" program. It mentions that Stroustrup added object-oriented programming features to the C language and named it C++. The document also lists different types of tokens, literals, and operators used in C++.
The document discusses syntax analysis and parsing. It defines a syntax analyzer as creating the syntactic structure of a source program in the form of a parse tree. A syntax analyzer, also called a parser, checks if a program satisfies the rules of a context-free grammar and produces the parse tree if it does, or error messages otherwise. It describes top-down and bottom-up parsing methods and how parsers use grammars to analyze syntax.
The document discusses different types of constants and variables in C programming. It describes integer, real, character, and string constants. Integer constants can be decimal, octal, or hexadecimal. Real constants represent quantities that vary continuously, with a mantissa and exponent. Character constants contain a single character within single quotes. String constants contain a sequence of characters within double quotes. Variables are names that store changing data values during program execution, while constants remain unchanged. Variables must start with a letter and can contain letters, digits, and underscores.
This document provides an introduction and overview of the C programming language. It discusses the history and development of C, why C is still widely used today despite newer languages, and shows a simple "Hello World" example as a first C program. The document also covers basic C programming concepts like data types, variables, constants, and input/output functions. It provides examples of declaring variables, assigning values, and using the printf statement to output values.
The document discusses different types of parsing techniques:
- Parsing is the process of analyzing a string of tokens based on the rules of a formal grammar. It involves constructing a parse tree that represents the syntactic structure of the string based on the grammar.
- The main types of parsing are top-down parsing and bottom-up parsing. Top-down parsing constructs the parse tree from the root node down, while bottom-up parsing constructs it from the leaf nodes up.
- Predictive and recursive descent parsing are forms of top-down parsing, while shift-reduce parsing is a common bottom-up technique. Each method has advantages and limitations regarding efficiency and the type of grammar they can handle.
This document provides an introduction to C++ programming, covering key concepts like characters, tokens, keywords, identifiers, literals, operators, I/O streams, variables, comments, and common errors. It explains that Bjarne Stroustrup extended C to create C++, adding object-oriented features from Simula. The main components discussed are the building blocks of any C++ program - characters, tokens, data types, and basic input/output operations.
C is a middle-level programming language developed by Dennis Ritchie in 1972 at Bell Labs. It acts as a bridge between machine language and high-level languages. C has several features that allow it to be used at a lower level. There are 6 basic tokens in C: character set, keywords, identifiers, data types, operators, and statements. These tokens are the basic building blocks of any C program.
This document provides an overview of fundamental concepts in C programming language including header files, character sets, tokens, keywords, identifiers, variables, constants, operators, data types, and control structures. Header files contain predefined standard library functions that are included using directives like #include<stdio.h>. C has 32 reserved keywords that cannot be used as identifiers. Variables are used to store and manipulate data in a program. Constants represent fixed values like integers, characters, and floating-point numbers. Operators perform operations on variables and constants. Data types specify the type and size of a variable. Control structures like if-else and loops are used to control the flow of a program.
This document provides an overview of the C programming language. It discusses the brief history of C, including its predecessors like CPL, BCPL, B, and ALGOL 68. It describes the different data types in C including literals, identifiers, keywords, expressions, and variables. Arithmetic, logical, and relational expressions are explained. Examples are provided to demonstrate how to convert mathematical formulas and English conditions to C expressions.
Identifiers are names given to variables, functions, and other user-defined items in a program to uniquely identify them. Identifiers must be different from keywords and other identifiers. They can include letters, digits, and underscores but must begin with a letter or underscore. Common examples of identifiers are variable and function names like roll_no and average. Identifiers are case-sensitive and allow programmers to reference specific program elements like variables during execution.
This document discusses key concepts in C programming including variables, data types, constants, keywords, comments, and rules for writing C programs. It defines variables as containers for storing data in memory locations. It describes predefined data types like char, int, float, and double as well as derived and user-defined data types. It also covers identifiers, declarations, initialization, keywords, constants, comments, and general rules for writing C programs.
The document describes a program with 6 functions to help elementary school students learn math. The functions include easy and hard addition, subtraction, a grade converter, and a letter grade function. Each function is defined to perform a specific math operation or conversion, such as adding two numbers or converting a percentage to a letter grade. The program is intended to help students learn math concepts in a structured way through interactive practice problems and feedback on their answers.
Constants are values that do not change during program execution and include numeric constants like integers and floating point numbers, as well as string or character constants. Variables are identifiers that are used to refer to values that can change during program execution. Common variable types in C include integers, floating point numbers, characters, and strings. Variables must be declared with a data type before being assigned values and have naming conventions like starting with a letter and being less than 32 characters.
This document provides an overview of various tokens and data types in the C programming language. It discusses keywords, identifiers, constants, strings, operators, variables, declarations, type conversions, and precedence rules. The key topics covered are:
- The basic tokens in C including keywords, identifiers, constants, strings, and white spaces.
- Integral and floating point data types such as int, char, float, and double.
- Rules for naming variables and declaring variables globally or locally.
- Arithmetic, relational, and logical operators in C and their precedence.
- Automatic and explicit type conversions between different data types.
The document discusses the basics of C language including tokens, data types, constants, and variables. It covers keywords, identifiers, operators, and other tokens in C. It describes the basic integral and floating point data types like int, char, float, and double. It also discusses numerical, character, and string constants. Finally, it explains how to declare variables and the differences between global and local variables.
Fundamentals of C includes tokens contains identifiers, constants, strings, variables, different types of operators, special symbols, data types and type casting in C Language
This document provides an introduction to C++ programming, covering key concepts like characters, tokens, keywords, identifiers, literals, operators, input/output, variables, comments, and common errors. It explains that C++ was created by Bjarne Stroustrup in the 1980s as an extension of C with object-oriented features from Simula 67.
The document defines various tokens in the C programming language including keywords, identifiers, constants, string literals, operators, data types, and variables. It discusses the basic data types like integers, floating point numbers, and characters. It also covers topics like declarations, global and local variables, type conversions, precedence and order of evaluation, and various operators used in C.
The document provides information about Bjarne Stroustrup, the creator of C++ programming language, and introduces some basic concepts of C++ like tokens, keywords, identifiers, literals, character set, and a simple "Hello World" program. It mentions that Stroustrup added object-oriented programming features to the C language and named it C++. The document also lists different types of tokens, literals, and operators used in C++.
The document discusses syntax analysis and parsing. It defines a syntax analyzer as creating the syntactic structure of a source program in the form of a parse tree. A syntax analyzer, also called a parser, checks if a program satisfies the rules of a context-free grammar and produces the parse tree if it does, or error messages otherwise. It describes top-down and bottom-up parsing methods and how parsers use grammars to analyze syntax.
The document discusses different types of constants and variables in C programming. It describes integer, real, character, and string constants. Integer constants can be decimal, octal, or hexadecimal. Real constants represent quantities that vary continuously, with a mantissa and exponent. Character constants contain a single character within single quotes. String constants contain a sequence of characters within double quotes. Variables are names that store changing data values during program execution, while constants remain unchanged. Variables must start with a letter and can contain letters, digits, and underscores.
This document provides an introduction and overview of the C programming language. It discusses the history and development of C, why C is still widely used today despite newer languages, and shows a simple "Hello World" example as a first C program. The document also covers basic C programming concepts like data types, variables, constants, and input/output functions. It provides examples of declaring variables, assigning values, and using the printf statement to output values.
The document discusses different types of parsing techniques:
- Parsing is the process of analyzing a string of tokens based on the rules of a formal grammar. It involves constructing a parse tree that represents the syntactic structure of the string based on the grammar.
- The main types of parsing are top-down parsing and bottom-up parsing. Top-down parsing constructs the parse tree from the root node down, while bottom-up parsing constructs it from the leaf nodes up.
- Predictive and recursive descent parsing are forms of top-down parsing, while shift-reduce parsing is a common bottom-up technique. Each method has advantages and limitations regarding efficiency and the type of grammar they can handle.
This document provides an introduction to C++ programming, covering key concepts like characters, tokens, keywords, identifiers, literals, operators, I/O streams, variables, comments, and common errors. It explains that Bjarne Stroustrup extended C to create C++, adding object-oriented features from Simula. The main components discussed are the building blocks of any C++ program - characters, tokens, data types, and basic input/output operations.
C is a middle-level programming language developed by Dennis Ritchie in 1972 at Bell Labs. It acts as a bridge between machine language and high-level languages. C has several features that allow it to be used at a lower level. There are 6 basic tokens in C: character set, keywords, identifiers, data types, operators, and statements. These tokens are the basic building blocks of any C program.
This document provides an overview of fundamental concepts in C programming language including header files, character sets, tokens, keywords, identifiers, variables, constants, operators, data types, and control structures. Header files contain predefined standard library functions that are included using directives like #include<stdio.h>. C has 32 reserved keywords that cannot be used as identifiers. Variables are used to store and manipulate data in a program. Constants represent fixed values like integers, characters, and floating-point numbers. Operators perform operations on variables and constants. Data types specify the type and size of a variable. Control structures like if-else and loops are used to control the flow of a program.
This document provides an overview of the C programming language. It discusses the brief history of C, including its predecessors like CPL, BCPL, B, and ALGOL 68. It describes the different data types in C including literals, identifiers, keywords, expressions, and variables. Arithmetic, logical, and relational expressions are explained. Examples are provided to demonstrate how to convert mathematical formulas and English conditions to C expressions.
Identifiers are names given to variables, functions, and other user-defined items in a program to uniquely identify them. Identifiers must be different from keywords and other identifiers. They can include letters, digits, and underscores but must begin with a letter or underscore. Common examples of identifiers are variable and function names like roll_no and average. Identifiers are case-sensitive and allow programmers to reference specific program elements like variables during execution.
This document discusses key concepts in C programming including variables, data types, constants, keywords, comments, and rules for writing C programs. It defines variables as containers for storing data in memory locations. It describes predefined data types like char, int, float, and double as well as derived and user-defined data types. It also covers identifiers, declarations, initialization, keywords, constants, comments, and general rules for writing C programs.
The document describes a program with 6 functions to help elementary school students learn math. The functions include easy and hard addition, subtraction, a grade converter, and a letter grade function. Each function is defined to perform a specific math operation or conversion, such as adding two numbers or converting a percentage to a letter grade. The program is intended to help students learn math concepts in a structured way through interactive practice problems and feedback on their answers.
Constants are values that do not change during program execution and include numeric constants like integers and floating point numbers, as well as string or character constants. Variables are identifiers that are used to refer to values that can change during program execution. Common variable types in C include integers, floating point numbers, characters, and strings. Variables must be declared with a data type before being assigned values and have naming conventions like starting with a letter and being less than 32 characters.
This document provides an overview of various tokens and data types in the C programming language. It discusses keywords, identifiers, constants, strings, operators, variables, declarations, type conversions, and precedence rules. The key topics covered are:
- The basic tokens in C including keywords, identifiers, constants, strings, and white spaces.
- Integral and floating point data types such as int, char, float, and double.
- Rules for naming variables and declaring variables globally or locally.
- Arithmetic, relational, and logical operators in C and their precedence.
- Automatic and explicit type conversions between different data types.
The document discusses the basics of C language including tokens, data types, constants, and variables. It covers keywords, identifiers, operators, and other tokens in C. It describes the basic integral and floating point data types like int, char, float, and double. It also discusses numerical, character, and string constants. Finally, it explains how to declare variables and the differences between global and local variables.
Fundamentals of C includes tokens contains identifiers, constants, strings, variables, different types of operators, special symbols, data types and type casting in C Language
This document provides an introduction to C++ programming, covering key concepts like characters, tokens, keywords, identifiers, literals, operators, input/output, variables, comments, and common errors. It explains that C++ was created by Bjarne Stroustrup in the 1980s as an extension of C with object-oriented features from Simula 67.
The document provides information on the C programming language. It discusses that C was developed in 1972 by Dennis Ritchie at Bell Labs. C is a portable, structured programming language known for its ability to extend itself through functions. The document outlines the basic structure of a C program and common elements like variables, data types, operators, and functions. It also provides a brief history of C and how it has become one of the most widely used programming languages.
The document provides an introduction to the C programming language, including its history, features, character sets, tokens, data types, operators, and the basic structure of a C program. It discusses key concepts such as variables, constants, comments, functions, input/output, and how to compile and execute a C program.
The document provides an introduction to the C programming language, including its history, features, character sets, tokens, data types, operators, and the basic structure of a C program. It discusses key concepts such as variables, constants, comments, functions, preprocessing directives, and how to compile and execute a C program.
This document provides an overview of the C programming language. It discusses that C was created by Dennis Ritchie in 1970 and is a structured programming language. It also describes some key features of C like it being a high-level language, being portable between computers, and having only 32 keywords. The document then explains the basic structure of a C program including header files, the main function, and function definitions. It also covers various data types in C like integers, floats, characters, as well as variables, constants, and comments.
This PPT is all about INTRODUCTION TO C LANGUAGE in which all basic topics are covered and the information present in this is refered from a book called "Let Us C" by YASHAVANT KANETKAR i.e. This PPT is having all important points of first chapter of "Let Us C". If any doubt plz ask us in comment.
The document discusses various topics related to programming style in C language including tokens, keywords, variables, constants, data types, operators, and flow control statements. It provides definitions and examples of each. Specifically, it defines the different types of tokens in C and gives an example program to demonstrate tokens. It also lists and describes the 32 keywords in C and provides rules for constructing identifiers and variables. Further, it discusses various data types in C including integer, floating-point, and character types and provides their storage sizes and value ranges. The document also covers the different categories of operators in C like arithmetic, relational, logical, bitwise, and assignment operators including their syntax and examples. Finally, it discusses selection and repetition statements like
C was originally developed in the 1970s by Dennis Ritchie at Bell Labs. It is a high-level, general-purpose programming language that allows for both system and applications programming. C contains features that bridge machine language and high-level languages, making it useful for system programming. The basic elements of C include keywords, variables, constants, operators, and other tokens that are constructed from characters, numbers, and symbols.
C is a programming language created by Dennis Ritchie at Bell Labs in 1972 to develop the UNIX operating system. It quickly became popular due to its efficiency, flexibility, and portability. In 1989, ANSI standardized C to promote consistency, and it has since become one of the most widely used programming languages. Variables in C must be declared before use and can be numeric like integers and floats, or character strings. Variable names follow specific rules and types must be specified in declarations.
Esoft Metro Campus - Certificate in c / c++ programmingRasan Samarasinghe
Esoft Metro Campus - Certificate in java basics
(Template - Virtusa Corporate)
Contents:
Structure of a program
Variables & Data types
Constants
Operators
Basic Input/output
Control Structures
Functions
Arrays
Character Sequences
Pointers and Dynamic Memory
Unions
Other Data Types
Input/output with files
Searching
Sorting
Introduction to data structures
This document provides an introduction to programming with C++, including comments, data types, variables, arithmetic operators, and expressions. It discusses single-line and multi-line comments to document code. The fundamental C++ data types are integer, floating point, and character, each with different size ranges. Variables are declared with a data type and assigned values. Arithmetic operators allow mathematical expressions to be evaluated using precedence rules. Relational operators enable boolean expressions.
The document discusses key concepts in C programming including:
1) The life cycle of a C program involving preprocessing, compilation, assembly, linking, and program execution in memory.
2) The structure of a C program including keywords, identifiers, variables, literals, and different variable types.
3) Details about integer, floating point, character, and string literals as well as escape sequences used in C programming.
Mca i pic u-2 datatypes and variables in c languageRai University
This document discusses various concepts related to data types and variables in the C programming language. It covers the basic structure of a C program and sections like documentation, definition, global declaration, main function, and subprogram sections. It describes rules for comments, the main method, declaration, data types like integer, floating point, character, and string. It also discusses variables, assigning values, and declaring variables with different storage classes.
C was originally developed in the 1970s by Dennis Ritchie at Bell Labs. It is a high-level, general-purpose programming language that contains features allowing it to be used for both system and application programming. The C language consists of characters, numbers, and symbols that form tokens like identifiers, keywords, constants, operators, and punctuation. Variables, functions, and other elements in C are given unique identifiers to represent storage areas that can be manipulated. Constants are values that cannot be altered, and different types of constants like integers, floats, characters, and strings are used. Operators perform arithmetic, relational, logical, and other operations on values and variables in C programs.
C was originally developed in the 1970s by Dennis Ritchie at Bell Labs. It is a high-level, general-purpose programming language that contains features allowing it to be used for both system and application programming. The C language consists of characters, numbers, and symbols that form tokens like identifiers, keywords, constants, operators, and punctuation. Variables, functions, and other elements in C are given unique identifiers to represent storage areas that can be manipulated. Constants are values that cannot be altered, and different types of constants like integers, floats, characters, and strings are used. Operators perform operations on values and variables, and different classes of operators exist for arithmetic, assignment, comparison, logic, and other purposes.
C was originally developed in the 1970s by Dennis Ritchie at Bell Labs. It is a high-level, general-purpose programming language that contains features allowing it to be used for both system and application programming. The C language consists of characters, numbers, and symbols that form tokens like identifiers, keywords, constants, operators, and punctuation. Variables, functions, and other elements in C are given unique identifiers to represent storage areas that can be manipulated. Constants are values that cannot be altered, and different types of constants like integers, floats, characters, and strings are used. Operators perform operations on values and variables, and different classes of operators exist for arithmetic, assignment, comparison, logic, and other purposes.
Advanced control scheme of doubly fed induction generator for wind turbine us...IJECEIAES
This paper describes a speed control device for generating electrical energy on an electricity network based on the doubly fed induction generator (DFIG) used for wind power conversion systems. At first, a double-fed induction generator model was constructed. A control law is formulated to govern the flow of energy between the stator of a DFIG and the energy network using three types of controllers: proportional integral (PI), sliding mode controller (SMC) and second order sliding mode controller (SOSMC). Their different results in terms of power reference tracking, reaction to unexpected speed fluctuations, sensitivity to perturbations, and resilience against machine parameter alterations are compared. MATLAB/Simulink was used to conduct the simulations for the preceding study. Multiple simulations have shown very satisfying results, and the investigations demonstrate the efficacy and power-enhancing capabilities of the suggested control system.
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSIJNSA Journal
The smart irrigation system represents an innovative approach to optimize water usage in agricultural and landscaping practices. The integration of cutting-edge technologies, including sensors, actuators, and data analysis, empowers this system to provide accurate monitoring and control of irrigation processes by leveraging real-time environmental conditions. The main objective of a smart irrigation system is to optimize water efficiency, minimize expenses, and foster the adoption of sustainable water management methods. This paper conducts a systematic risk assessment by exploring the key components/assets and their functionalities in the smart irrigation system. The crucial role of sensors in gathering data on soil moisture, weather patterns, and plant well-being is emphasized in this system. These sensors enable intelligent decision-making in irrigation scheduling and water distribution, leading to enhanced water efficiency and sustainable water management practices. Actuators enable automated control of irrigation devices, ensuring precise and targeted water delivery to plants. Additionally, the paper addresses the potential threat and vulnerabilities associated with smart irrigation systems. It discusses limitations of the system, such as power constraints and computational capabilities, and calculates the potential security risks. The paper suggests possible risk treatment methods for effective secure system operation. In conclusion, the paper emphasizes the significant benefits of implementing smart irrigation systems, including improved water conservation, increased crop yield, and reduced environmental impact. Additionally, based on the security analysis conducted, the paper recommends the implementation of countermeasures and security approaches to address vulnerabilities and ensure the integrity and reliability of the system. By incorporating these measures, smart irrigation technology can revolutionize water management practices in agriculture, promoting sustainability, resource efficiency, and safeguarding against potential security threats.
A review on techniques and modelling methodologies used for checking electrom...nooriasukmaningtyas
The proper function of the integrated circuit (IC) in an inhibiting electromagnetic environment has always been a serious concern throughout the decades of revolution in the world of electronics, from disjunct devices to today’s integrated circuit technology, where billions of transistors are combined on a single chip. The automotive industry and smart vehicles in particular, are confronting design issues such as being prone to electromagnetic interference (EMI). Electronic control devices calculate incorrect outputs because of EMI and sensors give misleading values which can prove fatal in case of automotives. In this paper, the authors have non exhaustively tried to review research work concerned with the investigation of EMI in ICs and prediction of this EMI using various modelling methodologies and measurement setups.
Batteries -Introduction – Types of Batteries – discharging and charging of battery - characteristics of battery –battery rating- various tests on battery- – Primary battery: silver button cell- Secondary battery :Ni-Cd battery-modern battery: lithium ion battery-maintenance of batteries-choices of batteries for electric vehicle applications.
Fuel Cells: Introduction- importance and classification of fuel cells - description, principle, components, applications of fuel cells: H2-O2 fuel cell, alkaline fuel cell, molten carbonate fuel cell and direct methanol fuel cells.
Using recycled concrete aggregates (RCA) for pavements is crucial to achieving sustainability. Implementing RCA for new pavement can minimize carbon footprint, conserve natural resources, reduce harmful emissions, and lower life cycle costs. Compared to natural aggregate (NA), RCA pavement has fewer comprehensive studies and sustainability assessments.
Literature Review Basics and Understanding Reference Management.pptxDr Ramhari Poudyal
Three-day training on academic research focuses on analytical tools at United Technical College, supported by the University Grant Commission, Nepal. 24-26 May 2024
Introduction- e - waste – definition - sources of e-waste– hazardous substances in e-waste - effects of e-waste on environment and human health- need for e-waste management– e-waste handling rules - waste minimization techniques for managing e-waste – recycling of e-waste - disposal treatment methods of e- waste – mechanism of extraction of precious metal from leaching solution-global Scenario of E-waste – E-waste in India- case studies.
Comparative analysis between traditional aquaponics and reconstructed aquapon...bijceesjournal
The aquaponic system of planting is a method that does not require soil usage. It is a method that only needs water, fish, lava rocks (a substitute for soil), and plants. Aquaponic systems are sustainable and environmentally friendly. Its use not only helps to plant in small spaces but also helps reduce artificial chemical use and minimizes excess water use, as aquaponics consumes 90% less water than soil-based gardening. The study applied a descriptive and experimental design to assess and compare conventional and reconstructed aquaponic methods for reproducing tomatoes. The researchers created an observation checklist to determine the significant factors of the study. The study aims to determine the significant difference between traditional aquaponics and reconstructed aquaponics systems propagating tomatoes in terms of height, weight, girth, and number of fruits. The reconstructed aquaponics system’s higher growth yield results in a much more nourished crop than the traditional aquaponics system. It is superior in its number of fruits, height, weight, and girth measurement. Moreover, the reconstructed aquaponics system is proven to eliminate all the hindrances present in the traditional aquaponics system, which are overcrowding of fish, algae growth, pest problems, contaminated water, and dead fish.
1. Mrs. Komal R. Pardeshi
Assisttant Professor,
Computer Science & Engg. Dept
Walchand Institute of Technology
Solapur, Maharashtra, India
2. Chapter 1
Introduction to C
What is Programming Language?
A programming language is a set of commands, instructions, and other syntax use to create a
software program.
What is Program ?
A computer program is a collection of instructions that performs a specific task when
executed by a computer.
A computer program is usually written by a computer programmer in a programming
language.
What is an algorithm?
Algorithm is step by step procedure to solve a given problem.
Algorithm can perform calculation , data processing.
It is a first step before writing any Computer program
What is Flowchart?
Flowchart is pictorial representation of algorithm.
flowchart symbols represent the various actions of a computer program
Start/ End
Process
Decision
Input / Output
Display Result
3. Getting Started With C
Steps in Learning English
To learn english or any mother toungue language we need to learn first Alphates , then using
alphabets we form words , using words we form sentences and using centences we form
paragraph.
Steps in Learning 'C' Language
Similarly, to learn any Computer language we need to understand Characeter set required for that
language , using this character set it forms constants, keywords, and variables. Using these
instruction is formed and set of instruction is nothing but a program.
'C' character Set
'C' contains total 256 characters. Every C character has American Standard Code
for Information Interchage (ASCII) Values.The characters in C are grouped into the following two
categories:
1. Source character set
a. Alphabets
b. Digits
c. Special Characters
d. White Spaces
2. Execution character set
a. Escape Sequence
Alphabets Words Sentences Paragraphs
' C ' character Set
Instruction
Set of
Instructions
Program
Constanats
,Variable,Keyword
4. 1. Source character set
a. ALPHABETS
Uppercase letters : A-Z (Ascii value : 65 to 90)
Lowercase letters : a-z (Ascii value : 97 to 122)
b. DIGITS
0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ( Ascii value : 48 to 57)
c. SPECIAL CHARACTERS
~ tilde , % percent sign , | vertical bar , @ at symbol , + plus sign, < less than,
_ underscore, - minus sign , > greater than , ^ caret , # number sign , = equal to,
& ampersand , $ dollar sign , / slash , ( left parenthesis , * asterisk , back slash
) right parenthesis , ′ apostrophe , : colon , [ , left bracket , " quotation mark , ; semicolon
] right bracket , ! exclamation mark , , comma , { left flower brace , ? Question mark , . dot
operator , } right flower brace
d. WHITESPACE CHARACTERS
b blank space , t horizontal tab , v vertical tab , r carriage return , f form feed , n new line
Back slash , ’ Single quote , " Double quote , ? Question mark , 0 Null, a Alarm (bell)
2. Execution character set
Certain ASCII characters are not displayed on the screen or printer. Examples are backspacing,
moving to a newline, or ringing a bell.
They are used in output statements. Escape sequence usually consists of a backslash and a letter or a
combination of digits. An escape sequence is considered as a single character but a valid character
constant.
These are employed at the time of execution of the program. Execution characters set are always
represented by a backslash () followed by a character. Note that each one of character constants
represents one character, although they consist of two characters. These characters combinations are
called as escape sequence.
All white space characters given above are execution characters.
• 'C' Constants C Constanats
Primary Constants Secondary Constanats
5. • Primary Constants :
i) Integer Constants
ii) Real (float) Constants
iii) Character Constants
i) Intger Constants :
An integer constant is a numeric constant (associated with number) without any
fractional or exponential part.
Rules for Constructing Integer Constant :
1) An integer constant must have at least one digit.
2) It must not have a decimal point.
3) It can either be positive or negative.
4) No commas or blanks are allowed within an integer constant.
5) If no sign precedes an integer constant, it is assumed to be positive.
6) The allowable range for integer constants is -32768 to 32767
Actually, the range of the integer constant depends on the compiler. The above mentioned
range is for 16-bit compiler. However, for a 32-bit compiler the range would be even greater.
Decimal Integer constant:
• 0 to 9
• E.g.: 49, 58, -62 … (40000 cannot come because it is > 32767)
Octal Integer constant:
• 0 to 7
• Add “0” before the value.
• E.g.: 045, 056, 067
Hexadecimal Integer constant:
• 0 to 9 and A to F
• Add 0x before the value
• E.g.: 0x42, 0x56, 0x67
ii) Real (Float)Constant : An integer constant is a numeric constant (associated with number) with
fractional or exponential part.
Rules for constructing Real constants (Fractional Form)
1) A real constant must have at least one digit
2) It must have a decimal point
3) It could be either positive or negative
4) If no sign precedes an integer constant, it is assumed to be positive.
5) No commas or blanks are allowed within a real constant.
E.g.: +867.9, -26.9876, 654.0
6. Rules for constructing Real constants (Exponential Form)
1) The mantissa part and the exponential part should be separated by the letter ‘e’
2) The mantissa may have a positive or negative sign(default sign is positive)
3) The exponent must have at least one digit
4) The exponent must be a positive or negative integer(default sign is positive)
5) The range of real constants in exponential form is -3.4e38 and +3.4e38
E.g.: +3.2e-4, 4.1e8, -0.2e+4, -3.2e-4
iii) Character Constant :
Rules for constructing Character constant
1) A character constant is an alphabet, a single digit or a single special symbol enclosed
within inverted commas. Both the inverted commas should point to the left. For example, ’S’
is a valid character constant whereas ‘S’ is not.
2) The maximum length of a character constant can be 1 character. Allots 1 byte of memory
E.g.: ’B’, ’l’, ’#’
• Secondary Constants : Array , Structure , union
• 'C' variables
• A variable is an entity whose value keeps on changing throughout the program execution.
• As we all know, data is stored in the memory of the computer.
• Actually, data is not stored in the variable. , rather a variable is the name given to the
memory location.
• A variable name is an entity that points to a particular memory location.
• Variable can be of different types.
Rules for constructing variable names
1. A Variable name consists of any combination of alphabets, digits and underscores. Some
compiler allows variable names whole length could be up to 247 characters. Still it would be
safer to stick to the rule of 31 characters. Please avoid creating long variable name as it adds
to your typing effort
2. The first character of the variable name must either be alphabet or underscore. It should not
start with the digit.
3. No commas and blanks are allowed in the variable name
4. No special symbols other than underscore are allowed in the variable name
7. Note : We cannot Use Keywords for – For Declaring Variable Name, For
Function Name and for declaring Constant Variable
We need to declare the type of the variable name before making use of that name in the
program. Type declaration can be done as follows:
To declare a variable as integer, follow the below syntax:
int variable_name;
Here int is the type of the variable named variable_name. ‘int’ denotes integer type.
'C' Keywords
• Keywords are those words whose meaning is already defined by Compiler
• Cannot be used as Variable Name
• There are 32 Keywords in C
• C Keywords are also called as Reserved words .
auto double int struct
break else long switch
case enume register typedef
char extern return union
const float short unsigned
continue for signed void
default goto sizeof volatile
do if static while
'C' Instructions
There are three types of instructions in C. They are as follows:
1) Type Declaration Instruction
2) Arithmetic Instruction
3) Control instruction
1) Type Declaration instruction :
• It is used to declare the type of variables used in C.
• Any variable we want to use in the program must be declared before using it.
• This declaration is done using Type declaration instruction.
• This declaration is done at the beginning of the main() function.
• e.g int num;
8. 2) Arthmetic Instruction :
• Arithmetic instructions are used to perform arithmetic operations on variables and
constants.
• These are operands and operators.
• The variables and constants on which arithmetic operation is done by arithmetic
operators are called operands.
• e.g int a = 5, b = 10, c;
c = a + b;
Here, ( a,b,c ) are operands and (= , + ) are operators.
Similarly, a= a+1 ;
Here (a , 1 ) are operands and (= , + ) are operators.
3) Control Instructions
• Control instruction is used to control the sequence (flow) of the program.
• if, if..else, for, while , do... while , switch are used for decision
control statements
Structure of C Program
// structure of C program
// declaration of header files
#include<stdio.h>
#include<conio.h>
main() // function main
{
declartion of variables;
clrscr(); //clear screen
set of Instructions ;
getch(); //remain on o/p screen till user enters character
} // end of main
Note : Comments are the lines which are written by programmer for own
understanding . These are the lines which are not recognised by C compiler while
compiling the program.
In C single line comment is given by // and multiline comment is given by /*.....*/
Note : Use Turboc editor to write , compile and execute C program on Windows OS. To
save C program use .c extension. F9 to compile and ctr+F9 to Run . On Linux OS
write program using available editor(gedit,eclipse etc) compile using cmd cc filename.c
and after successful compilation execute using ./a.out