This document discusses various elements of the C programming language including character sets, keywords, identifiers, data types, variables, constants, preprocessor directives, escape sequences, tokens, delimiters, and expressions. It provides definitions and examples for each concept. Key points covered include the four categories that make up the C character set, common keywords in C, rules for naming identifiers, the five primary data types and their properties, and how to declare and assign variables.
The word Algorithm means “a process or set of rules to be followed in calculations or other problem-solving operations”.
flowchart is a type of diagram that represents an algorithm, workflow or process.
Here are some of the things that learning coding can empower someone to do-
To Make someone’s Own Website.
Become a Career Coder.
Start a Business
Some of the kinds of businesses you can start include… selling software
selling mobile apps e-commerce
selling your coding time.
To Understand How Computers Work and so more.
A small journey in programming using C Language. In This Presentation i provide a small introduction about C Language.
Our Company APSMIND TECHNLOGY PVT LTD actually provide Application/software development training using various language like C, C++, java, .Net, PHP etc.
We also ,develop application and website for various client as for their requirement.
The word Algorithm means “a process or set of rules to be followed in calculations or other problem-solving operations”.
flowchart is a type of diagram that represents an algorithm, workflow or process.
Here are some of the things that learning coding can empower someone to do-
To Make someone’s Own Website.
Become a Career Coder.
Start a Business
Some of the kinds of businesses you can start include… selling software
selling mobile apps e-commerce
selling your coding time.
To Understand How Computers Work and so more.
A small journey in programming using C Language. In This Presentation i provide a small introduction about C Language.
Our Company APSMIND TECHNLOGY PVT LTD actually provide Application/software development training using various language like C, C++, java, .Net, PHP etc.
We also ,develop application and website for various client as for their requirement.
The root of all modern language is ALGOL (Algorithmic Language), introduced in the early 1969s. ALGOL was the first computer language to use a block structure. In 1967, Martin Richards developed a language called BCPL (Basic Combined Programming Language) primarily for writing system software. In 1970, Ken Thompson created a language using main features of BCPL and called it simply B. B was used to create early version of UNIX operating system at Bell Laboratories. C was evolved from ALGOL, BCPL and B by Dennis Ritchie at AT & T’s Bell Laboratories in 1972 for use on the UNIX operating system. It has since spread to many other operating systems, and is now one of the most widely used programming languages.
C programming Training in Ambala ! Batra Computer Centrejatin batra
Batra Computer Centre is An ISO certified 9001:2008 training Centre in Ambala.
We Provide C Programming Training in Ambala. BATRA COMPUTER CENTRE provides best training in C, C++, S.E.O, Web Designing, Web Development and So many other courses are available.
The C programming language is a structure oriented programming language, developed at Bell Laboratories in 1972 by Dennis Ritchie C programming language features were derived from an earlier language called “B” (Basic Co..
This Document about is C Programming language. You will learn Operators in C.
Types of operators-
Arithmetic Operators
Relational Operators
Increment Operator
Decrement Operator
Logical Operators
Conditional Operator
The root of all modern language is ALGOL (Algorithmic Language), introduced in the early 1969s. ALGOL was the first computer language to use a block structure. In 1967, Martin Richards developed a language called BCPL (Basic Combined Programming Language) primarily for writing system software. In 1970, Ken Thompson created a language using main features of BCPL and called it simply B. B was used to create early version of UNIX operating system at Bell Laboratories. C was evolved from ALGOL, BCPL and B by Dennis Ritchie at AT & T’s Bell Laboratories in 1972 for use on the UNIX operating system. It has since spread to many other operating systems, and is now one of the most widely used programming languages.
C programming Training in Ambala ! Batra Computer Centrejatin batra
Batra Computer Centre is An ISO certified 9001:2008 training Centre in Ambala.
We Provide C Programming Training in Ambala. BATRA COMPUTER CENTRE provides best training in C, C++, S.E.O, Web Designing, Web Development and So many other courses are available.
The C programming language is a structure oriented programming language, developed at Bell Laboratories in 1972 by Dennis Ritchie C programming language features were derived from an earlier language called “B” (Basic Co..
This Document about is C Programming language. You will learn Operators in C.
Types of operators-
Arithmetic Operators
Relational Operators
Increment Operator
Decrement Operator
Logical Operators
Conditional Operator
A File is a collection of data stored in the secondary memory. So far data wa...bhargavi804095
A File is a collection of data stored in the secondary memory. So far data was entered into the programs through the keyboard. So Files are used for storing information that can be processed by the programs. Files are not only used for storing the data, programs are also stored in files. In order to use files, we have to learn file input and output operations. That is, how data is read and how to write into a file. A Stream is the important concept in C. The Stream is a common, logical interface to the various devices that comprise the computer. So a Stream is a logical interface to a file. There are two types of Streams, Text Stream and Binary Stream. A Text File can be thought of as a stream of characters that can be processed sequentially. It can only be processed in the forward direction.
Gen Z and the marketplaces - let's translate their needsLaura Szabó
The product workshop focused on exploring the requirements of Generation Z in relation to marketplace dynamics. We delved into their specific needs, examined the specifics in their shopping preferences, and analyzed their preferred methods for accessing information and making purchases within a marketplace. Through the study of real-life cases , we tried to gain valuable insights into enhancing the marketplace experience for Generation Z.
The workshop was held on the DMA Conference in Vienna June 2024.
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC
Ellisha Heppner, Grant Management Lead, presented an update on APNIC Foundation to the PNG DNS Forum held from 6 to 10 May, 2024 in Port Moresby, Papua New Guinea.
Understanding User Behavior with Google Analytics.pdfSEO Article Boost
Unlocking the full potential of Google Analytics is crucial for understanding and optimizing your website’s performance. This guide dives deep into the essential aspects of Google Analytics, from analyzing traffic sources to understanding user demographics and tracking user engagement.
Traffic Sources Analysis:
Discover where your website traffic originates. By examining the Acquisition section, you can identify whether visitors come from organic search, paid campaigns, direct visits, social media, or referral links. This knowledge helps in refining marketing strategies and optimizing resource allocation.
User Demographics Insights:
Gain a comprehensive view of your audience by exploring demographic data in the Audience section. Understand age, gender, and interests to tailor your marketing strategies effectively. Leverage this information to create personalized content and improve user engagement and conversion rates.
Tracking User Engagement:
Learn how to measure user interaction with your site through key metrics like bounce rate, average session duration, and pages per session. Enhance user experience by analyzing engagement metrics and implementing strategies to keep visitors engaged.
Conversion Rate Optimization:
Understand the importance of conversion rates and how to track them using Google Analytics. Set up Goals, analyze conversion funnels, segment your audience, and employ A/B testing to optimize your website for higher conversions. Utilize ecommerce tracking and multi-channel funnels for a detailed view of your sales performance and marketing channel contributions.
Custom Reports and Dashboards:
Create custom reports and dashboards to visualize and interpret data relevant to your business goals. Use advanced filters, segments, and visualization options to gain deeper insights. Incorporate custom dimensions and metrics for tailored data analysis. Integrate external data sources to enrich your analytics and make well-informed decisions.
This guide is designed to help you harness the power of Google Analytics for making data-driven decisions that enhance website performance and achieve your digital marketing objectives. Whether you are looking to improve SEO, refine your social media strategy, or boost conversion rates, understanding and utilizing Google Analytics is essential for your success.
Ready to Unlock the Power of Blockchain!Toptal Tech
Imagine a world where data flows freely, yet remains secure. A world where trust is built into the fabric of every transaction. This is the promise of blockchain, a revolutionary technology poised to reshape our digital landscape.
Toptal Tech is at the forefront of this innovation, connecting you with the brightest minds in blockchain development. Together, we can unlock the potential of this transformative technology, building a future of transparency, security, and endless possibilities.
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfFlorence Consulting
Quattordicesimo Meetup di Milano, tenutosi a Milano il 23 Maggio 2024 dalle ore 17:00 alle ore 18:30 in presenza e da remoto.
Abbiamo parlato di come Axpo Italia S.p.A. ha ridotto il technical debt migrando le proprie APIs da Mule 3.9 a Mule 4.4 passando anche da on-premises a CloudHub 1.0.
Instagram has become one of the most popular social media platforms, allowing people to share photos, videos, and stories with their followers. Sometimes, though, you might want to view someone's story without them knowing.
2. Character Set
• Set of characters that are used to form words,
numbers and expression in C is called c
character set.
• Characters in C are grouped into the following
four categories:
1. Letters and alphabets (A…Z, a…z)
2. Digits (0,1,2,3,4,5,6,7,8,9)
3. Special Characters (, . ; : ? ‘ “ & ^ * - + < >)
4. White spaces (Blank Space, Horizontal tab etc)
Ashim Lamichhane 2
3. Keywords
• These are predefined words for a C
programming language.
• All keywords have fixed meaning and these
meanings cannot be changed.
• Ex. auto double int struct
Break Else Long Switch
Case Enum Register Typedef
Char Return Union Const
Float Short Unsigned Continue
Void For Default Goto
Sizeof Volatile Do If
Static While Extern signed
Ashim Lamichhane 3
4. • Every word used in C program to identify the name of
variables, functions, arrays, pointers and symbolic constants
are known as identifiers.
• Names given by user and consist of a sequence of letters and
digits, with a letter as the first character. e.g. myVariable,
myName, heyYou, callThisNumber45, add_this_number etc.
• There are certain rules to be followed while naming
identifiers. (KEEP THIS IN MIND)
Identifiers
Ashim Lamichhane 4
5. Rules to be followed while naming identifiers
1. It must be a combination of letters and digits
and must begin with a letter.
2. Underscore is permitted between two digits
and must begin with a letter.
3. Only first 31 characters are significant.
4. Keywords cannot be used.
5. It is case sensitive, i.e. uppercase and
lowercase letters are not interchangeable.
Ashim Lamichhane 5
6. Data Types
• 10 is a whole number where as 100.5 is a
fractional/rational number.
• Similarly in C 10 is an integer number whereas 100.5 is a
float number.
• There are variety of data types available.
• ANSI C supports three classes of data types:
– Primary/fundamental data types
– User-defined data types
– Derived data types
Ashim Lamichhane 6
7. Primary data types are categorized into five
types:
1. Integer type (int)
2. Floating point type (float)
3. Double-precision floating point type (double)
4. Character type (char)
5. Void type (void)
Ashim Lamichhane 7
8. Integer types
• Integers are whole numbers
• Requires 16 bit of storage. i.e. 2 bytes
• Three classes of integer:
– Integer (int)
– Short integer (short int)
– Long integer (long int)
• Both signed and unsigned forms.
• Defined as:
int a;
Int myVar=6;
Ashim Lamichhane 8
9. Signed Integer Unsigned Integer
It represents both positive and negative
integers
It represents only positive integers
The data type qualifier is signed int or int.
Variables are defined as:
signed int a;
Int b;
The data type qualifier is unsigned int or
unsigned
Variables are defined as:
unsigned int a;
unsigned b;
By default all int are signed Unsigned int have to be declared explicitly
It reserves 16-bit (2 bytes) in memory It reserves 16-bit (2 bytes) in memory
Range -215 to +215 i.e. -32,768 to 32,767 Range from 0 to +216 i.e. 0 to 65,535
Its conversion character is d Its conversion character is u
Ashim Lamichhane 9
10. Floating Point Types
• Floating point types are fractional numbers
• In C it is defined by float.
• Reserves 32bits i.e. 4 bytes
• Variable is defined as:
float a;
float myValue=56.5;
Ashim Lamichhane 10
11. Assignment
• Write something about Signed and Unsigned
short Integers.
• Write something about Signed and Unsigned
long Integers.
• Write something about Double Precision and
Long Double Precision Floating point
Ashim Lamichhane 11
12. Character Type
• A single character can be defined as a character type data.
• Stored in 8 bits (1 byte).
• The qualifier signed or unsigned may be used with char.
• The unsigned char has values between 0 and 255.
• The signed char has values from -128 to 127.
• The conversion character for this type is c
Ashim Lamichhane 12
13. • Each character is represented by an
ASCII(American Standard code for information
interchange)
• Ex
– “A” is represented by 65
– “B” is represented by 66
– “a” is represented by 97
– “z” is represented by 122
• With conversion character d, it will display ASCII
value.
• With conversion character c, it will display
character.
Ashim Lamichhane 13
15. Note
• The difference of corresponding uppercase
and lowercase character is always 32.
• i.e
– ASCII value of ‘a’ – ASCII value of ‘A’ = 32
– ASCII value of ‘m’ – ASCII value of ‘M’ = 32
• Using this logic, we can convert uppercase
letter into its lowercase and vice versa.
Ashim Lamichhane 15
16. Void Type
• This void type has no value.
• This is usually used to specify a type of
function when it does not return any value to
the calling function.
• Ex
– void main()
– void whatIsThis();
Ashim Lamichhane 16
17. User Defined Data Types
• C supports a feature called type definition
which allows users to define an identifier that
would represent an existing data type.
• typedef statement is used to give new name
to an existing data type.
• It allows users to define new data types that
are equivalent to an existing data types.
Ashim Lamichhane 17
18. • General form:
– typedef existing_data_type new_name_for_existing_data_type;
• Here,
– existing_data_type is any one of the fundamental
data type.
– new_name_for_existing_data_type refers to a
new identifier.
• Ex:
– typedef int integer;
• integer symbolizes int data type. Now we can declare
int variable “a” as “integer a” rather than “int a”
Ashim Lamichhane 18
19. Constants
• A constant is a quantity that doesn't change
during the execution.
• These fixed values are also called literals
• Constants can be of any of the basic data
types like an integer constant, a floating
constant, a character constant, or a string
literal. There are enumeration constants as
well.
Ashim Lamichhane 19
20. Integer Literals
• An integer literal can be a decimal, octal, or hexadecimal
constant.
• A prefix specifies the base or radix: 0x or 0X for hexadecimal,
0 for octal, and nothing for decimal.
• An integer literal can also have a suffix that is a combination
of U and L, for unsigned and long, respectively.
• Following are other examples of various types of integer
literals −
Ashim Lamichhane 20
85 /* decimal */
0213 /* octal */
0x4b /* hexadecimal */
30 /* int */
30l /* long*/
21. • Character literals are enclosed in single quotes,
– e.g., 'x' can be stored in a simple variable of char type.
• A character literal can be a
– plain character (e.g., 'x'),
– an escape sequence (e.g., 't'),
– or a universal character (e.g., 'u02C0').
• There are certain characters in C that represent special
meaning when preceded by a backslash for example, newline
(n) or tab (t).
Ashim Lamichhane 21
Character Constants
22. String Constants
• Sequence of characters enclosed in double
quotes.
• May contain letters, numbers, special
characters or blank spaces.
• Eg.
– “hello”
– “hie”
– “2048”
Ashim Lamichhane 22
23. Variables
• A symbolic name which is used to store data item i.e. a
numerical quantity or a character constant.
• Unlike constant, the value of a variable can change during the
execution of a program.
• The same variable can store different value at different
portion of a program.
• Variable name may consist of letters, digits or underscore
characters.
Ashim Lamichhane 23
24. Variable declaration
• Any variable should be defined before using it in a
program
• Variable declaration syntax:
– data-type variable_name1, variable_name2…..
• Valid declaration are:
– int n1;
– int centi, temp;
– float radius;
– char gender;
Ashim Lamichhane 24
n1 =1 //valid
radius= 2.6 //valid
gender =‘M’ //valid
temp= ‘F’ //Invalid
25. Rules for Variable Declaration
• The variable name should start with only letters.
• The variable name shouldn't not be keyword
• White spaces are not allowed between characters of
variable but underscores are approved
• The variable name is case sensitive.
– TEMP and temp is different variable
• No two variables of the same name are allowed to be
declared in the same scope
Ashim Lamichhane 25
26. Preprocessor Directives
• Collection of special statements that are executed at the beginning
of a compilation process.
• Placed in the source program before the main function.
• These statements are called preprocessor directives as they are
processed before compilation of any other source code in the
program.
Ashim Lamichhane 26
#include<stdio.h> //used for file inclusion
#define PI 3.1416 //defining symbolic constant PI
#define TRUE 1 //used for defining TRUE as 1
#define FLASE 0 //used for defining FALSE as 0
27. Escape sequences
• An escape sequence is a non-printing characters
used in C.
• Character combination consisting of backslash ()
followed by a letter or by a combination of digits.
• Each sequences are typically used to specify actions
such as carriage return, backspace, line feed or move
cursors to next line.
Ashim Lamichhane 27
31. Tokens in C
• The basic elements recognized by the C
compiler are the “tokens”
Ashim Lamichhane 31
32. Delimiters
• A delimiter is a unique character or series of
characters that indicates the beginning or end of a
specific statement, string or function body set.
• Delimiter examples include:
– Round brackets or parentheses: ( )
– Curly brackets: { }
– Escape sequence or comments: /*
– Double quotes for defining string literals: " "
Ashim Lamichhane 32
33. Expressions
• In programming, an expression is any legal combination
of symbols that represents a value.
• For example, in the C language x+5 is a legal expression.
• Every expression consists of at least one operand and can
have one or more operators.
• Operands are values and Operators are symbols that
represent particular actions.
• Ex:
– in the C language x+5 is a legal expression.
Ashim Lamichhane 33
34. Types of Expression
Type Explanation Example
Infix
Expression in which
Operator is in between
Operands
a + b
Prefix
Expression in which
Operator is written
before Operands
+ a b
Postfix
Expression in which
Operator is written after
Operands
a b +
Ashim Lamichhane 34
35. ASSIGNMENT
• Write something about Real Constants and also
fractional form constants and exponential form
constants(mantissa/exponents).
• Write something about Symbolic Constants. Write
rules for defining a symbolic constants. Also explain
advantages of symbolic constants.
Ashim Lamichhane 36