SlideShare una empresa de Scribd logo
1 de 20
Ms.K.Banupriya
Assistant Professor
Department of Information Technology
Bon Secours College for Women, Thanjavur.
C is the programming language
developed by dennis M . Ritchie at Bell
lab in USA.
‘c’ is a middle level language .
UNIX operating system was written in
‘c’ language.
‘c’ language is used as most common
platform for developing system
programs.
 It is one of the most popular computer
language today because it is a
structural,high-level machine
independent language.
It allows the developes to develop
programs without worrying about the
hardware about the platform where
they will be implemented.
 Programs written in c are efficient and fast.
 There are only 32 keywords in ANSIC and
its strength lies in this built-in-function.
 C is highly portable.
 C language is well suited for structured
programming .
 Another important feature of c is its ability to
extend itself.
#include<stdio.h>
#include<math.h>
Void main()
{
Clrscr()
int a,b,c,
printf(“Enter the value for a&b”);
Scanf(%d%d”,&a&b);
C=a+b;
Printf(“The addition result is”
getch();
}
 c operator can be classified of a number
categries.These are
1.arithmetic operator
2.Relation operator
3. Logical operator
4. assingment operator
5.increment &decrement opertor
6.condition operator
7. Bitwise operator
8. special operator
 arithmetic operator is used to
performing mathematical operations
such as addition subtraction
multiplication , division ,modules,.
operator meaning
+ Addition
_ Subtraction
* Multiplication
/ Division
% Module
#include<stdio.h>
#inlude<conio.h>
Void main( )
{
int a,b;
Clrscr( );
Printf(“Enter the two value:n”);
Scanf(“%d%d”,&a&b);
Printf(“addition:n”,a+b);
Printf(“subtraction:n”,a-b);
Printf(“multiplicationm:n”,a*b);
Printf(“division:n”,a/b);
Printf(“module division:/n”,a%b);
getch();
}
 a relational operator checks the relational between two
operands . If the relation is true ,it returns 1; if the relation
is false , it returns value 0.relational operator are used in
decision making and loops
operator meaning
< Is less than
<= Is less than or equal to
> Greater than
>= Is greater than or equal to
== Is equal to
!= Is not equal to
#include<stdio.h>
#include<conio.h>
Void main( )
{
int a,b;
clrscr( );
Printf(Enter the two value:n”);
Scanf(“%d%d,&a&b);
If(a>b)
{
Printf(“A is the greater than:n”)
}
Else
{
Printf(“A is the greater than :/n”)
}
Getch( )
}
 We use logical operator to perform
various logical operations on any
set of given expressions .
logical operator meaning
&& Logical AND
|| Logical OR
! Logical NOT
#include<stdio.h>
#include<conio.h>
Void main( )
{
int a=40,b=20,c=30,D=40;
clrscr( );
If(a>b&&c<d)
Printf(A is greater than B OR D is greater than C”);
Else
Printf(logical OR function does not satisfied ”)
Getch( )
}
 Assignment operator are used to assigning value to a
variable.
 Left side operand of the assignment operator is a variable
and right side operand of the assignment operator is a
value
compound
assignment
equivalent
assignment
A>>=B A=A>>B
A&=58 A=A&58
A|=B A=A|B
A^=B A=A^B
A/=(B+C) A=A/(B+C)
A%=(X%10) A=A%(X%10)
PROGRAM:
#include <stdio.h>
#include<conio.h>
Void main( )
{
Int a=10,b=20
Clrscr( );
Printf(“A%d”,a);
Printf(“n B%d”,b)
a=a+b
Printf(“nA%d”,a);
Getch( )
}
 ++ and - - operators are called increment and decrement
operators.
 they are unary operator needing only one operand.hence
++ as well - - operand can appear before or after the
operand with same effect.
compound
assignment
equivalent
assignment
A>>=B A=A>>B
A&=58 A=A&58
A|=B A=A|B
A^=B A=A^B
A/=(B+C) A=A/(B+C)
A%=(X%10) A=A%(X%10)
PROGRAM:
#include<stdio.h>
#include<conio.h>
Void main ( )
{
Int a=10,
Clrscr( )
Printf(“A++ is ,%d”,a++);
Printf(“n A is ,%d”, a);
Getch( );
}
 conditional operator is a single programming
statement ,while the if-else statement is a
programming block in which statements come
under the pranthesis.
exp 1,exp 2, exp 3
 This operator is used as a pointer to a
variable .
comma operator
size of the operator
 bitwise operator are character that represent
action(bitwise operation) to be performed on single bits .
 they operate at the binary level and perform operation on
bit patterns that involve the manipulation of individual
bits .
operator meaning
& bitwise AND
| Bitwise OR
^ Bitwise exclisive OR
<< Left shift
>> Right shift
~ One’s complement
PROGRAM:
#include<stdio.h>
#<inlude<conio.h>
Void main( )
{
Int test=1;
Int number;
Printf(“input a numbern”)
Scanf(“%d”,& number);
While(number!=-1)
{
If(number&test)
Printf(“Number is odd n”);
Else
Printf(“Number is even n”);
Printf(“input a numbern”);
Scanf(“%d”,&number);
}
}

Más contenido relacionado

Similar a c programming language.pptx

C program report tips
C program report tipsC program report tips
C program report tipsHarry Pott
 
In C Programming create a program that converts a number from decimal.docx
In C Programming create a program that converts a number from decimal.docxIn C Programming create a program that converts a number from decimal.docx
In C Programming create a program that converts a number from decimal.docxtristans3
 
Introduction to programming c and data structures
Introduction to programming c and data structuresIntroduction to programming c and data structures
Introduction to programming c and data structuresPradipta Mishra
 
'C' language notes (a.p)
'C' language notes (a.p)'C' language notes (a.p)
'C' language notes (a.p)Ashishchinu
 
Introduction to programming c and data-structures
Introduction to programming c and data-structures Introduction to programming c and data-structures
Introduction to programming c and data-structures Pradipta Mishra
 
Operators-computer programming and utilzation
Operators-computer programming and utilzationOperators-computer programming and utilzation
Operators-computer programming and utilzationKaushal Patel
 
presentation_c_basics_1589366177_381682.pptx
presentation_c_basics_1589366177_381682.pptxpresentation_c_basics_1589366177_381682.pptx
presentation_c_basics_1589366177_381682.pptxKrishanPalSingh39
 
Sample for Simple C Program - R.D.Sivakumar
Sample for Simple C Program - R.D.SivakumarSample for Simple C Program - R.D.Sivakumar
Sample for Simple C Program - R.D.SivakumarSivakumar R D .
 
Functions and pointers_unit_4
Functions and pointers_unit_4Functions and pointers_unit_4
Functions and pointers_unit_4MKalpanaDevi
 
complete data structure
complete data structurecomplete data structure
complete data structureAnuj Arora
 
Datastructurenotes 100627004340-phpapp01
Datastructurenotes 100627004340-phpapp01Datastructurenotes 100627004340-phpapp01
Datastructurenotes 100627004340-phpapp01Getachew Ganfur
 
Introduction to C Programming - I
Introduction to C Programming - I Introduction to C Programming - I
Introduction to C Programming - I vampugani
 
Numerical analysis
Numerical analysisNumerical analysis
Numerical analysisVishal Singh
 

Similar a c programming language.pptx (20)

C program report tips
C program report tipsC program report tips
C program report tips
 
In C Programming create a program that converts a number from decimal.docx
In C Programming create a program that converts a number from decimal.docxIn C Programming create a program that converts a number from decimal.docx
In C Programming create a program that converts a number from decimal.docx
 
Introduction to programming c and data structures
Introduction to programming c and data structuresIntroduction to programming c and data structures
Introduction to programming c and data structures
 
C-PPT.pdf
C-PPT.pdfC-PPT.pdf
C-PPT.pdf
 
'C' language notes (a.p)
'C' language notes (a.p)'C' language notes (a.p)
'C' language notes (a.p)
 
Introduction to programming c and data-structures
Introduction to programming c and data-structures Introduction to programming c and data-structures
Introduction to programming c and data-structures
 
Operators-computer programming and utilzation
Operators-computer programming and utilzationOperators-computer programming and utilzation
Operators-computer programming and utilzation
 
presentation_c_basics_1589366177_381682.pptx
presentation_c_basics_1589366177_381682.pptxpresentation_c_basics_1589366177_381682.pptx
presentation_c_basics_1589366177_381682.pptx
 
Sample for Simple C Program - R.D.Sivakumar
Sample for Simple C Program - R.D.SivakumarSample for Simple C Program - R.D.Sivakumar
Sample for Simple C Program - R.D.Sivakumar
 
Functions and pointers_unit_4
Functions and pointers_unit_4Functions and pointers_unit_4
Functions and pointers_unit_4
 
complete data structure
complete data structurecomplete data structure
complete data structure
 
Datastructurenotes 100627004340-phpapp01
Datastructurenotes 100627004340-phpapp01Datastructurenotes 100627004340-phpapp01
Datastructurenotes 100627004340-phpapp01
 
Introduction to C Programming - I
Introduction to C Programming - I Introduction to C Programming - I
Introduction to C Programming - I
 
C quiz
C quizC quiz
C quiz
 
C language
C language C language
C language
 
Mcs 011 solved assignment 2015-16
Mcs 011 solved assignment 2015-16Mcs 011 solved assignment 2015-16
Mcs 011 solved assignment 2015-16
 
C language
C languageC language
C language
 
Unit-IV.pptx
Unit-IV.pptxUnit-IV.pptx
Unit-IV.pptx
 
C Language Lecture 16
C Language Lecture 16C Language Lecture 16
C Language Lecture 16
 
Numerical analysis
Numerical analysisNumerical analysis
Numerical analysis
 

Más de banu236831

Web Design-III IT.ppt
Web Design-III IT.pptWeb Design-III IT.ppt
Web Design-III IT.pptbanu236831
 
pointer in c++ -banu.pptx
pointer in c++ -banu.pptxpointer in c++ -banu.pptx
pointer in c++ -banu.pptxbanu236831
 
understanding-operating-systems-Banu.ppt
understanding-operating-systems-Banu.pptunderstanding-operating-systems-Banu.ppt
understanding-operating-systems-Banu.pptbanu236831
 
distributed os.ppt
distributed os.pptdistributed os.ppt
distributed os.pptbanu236831
 
Human Resource BPO.ppt
Human Resource BPO.pptHuman Resource BPO.ppt
Human Resource BPO.pptbanu236831
 
NT-Soft-skills-PPT new.pptx
NT-Soft-skills-PPT new.pptxNT-Soft-skills-PPT new.pptx
NT-Soft-skills-PPT new.pptxbanu236831
 
C-FILE MANAGEMENT.pptx
C-FILE MANAGEMENT.pptxC-FILE MANAGEMENT.pptx
C-FILE MANAGEMENT.pptxbanu236831
 

Más de banu236831 (8)

Web Design-III IT.ppt
Web Design-III IT.pptWeb Design-III IT.ppt
Web Design-III IT.ppt
 
os.ppt
os.pptos.ppt
os.ppt
 
pointer in c++ -banu.pptx
pointer in c++ -banu.pptxpointer in c++ -banu.pptx
pointer in c++ -banu.pptx
 
understanding-operating-systems-Banu.ppt
understanding-operating-systems-Banu.pptunderstanding-operating-systems-Banu.ppt
understanding-operating-systems-Banu.ppt
 
distributed os.ppt
distributed os.pptdistributed os.ppt
distributed os.ppt
 
Human Resource BPO.ppt
Human Resource BPO.pptHuman Resource BPO.ppt
Human Resource BPO.ppt
 
NT-Soft-skills-PPT new.pptx
NT-Soft-skills-PPT new.pptxNT-Soft-skills-PPT new.pptx
NT-Soft-skills-PPT new.pptx
 
C-FILE MANAGEMENT.pptx
C-FILE MANAGEMENT.pptxC-FILE MANAGEMENT.pptx
C-FILE MANAGEMENT.pptx
 

Último

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 

Último (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

c programming language.pptx

  • 1. Ms.K.Banupriya Assistant Professor Department of Information Technology Bon Secours College for Women, Thanjavur.
  • 2. C is the programming language developed by dennis M . Ritchie at Bell lab in USA. ‘c’ is a middle level language . UNIX operating system was written in ‘c’ language. ‘c’ language is used as most common platform for developing system programs.
  • 3.  It is one of the most popular computer language today because it is a structural,high-level machine independent language. It allows the developes to develop programs without worrying about the hardware about the platform where they will be implemented.
  • 4.
  • 5.  Programs written in c are efficient and fast.  There are only 32 keywords in ANSIC and its strength lies in this built-in-function.  C is highly portable.  C language is well suited for structured programming .  Another important feature of c is its ability to extend itself.
  • 6. #include<stdio.h> #include<math.h> Void main() { Clrscr() int a,b,c, printf(“Enter the value for a&b”); Scanf(%d%d”,&a&b); C=a+b; Printf(“The addition result is” getch(); }
  • 7.  c operator can be classified of a number categries.These are 1.arithmetic operator 2.Relation operator 3. Logical operator 4. assingment operator 5.increment &decrement opertor 6.condition operator 7. Bitwise operator 8. special operator
  • 8.  arithmetic operator is used to performing mathematical operations such as addition subtraction multiplication , division ,modules,. operator meaning + Addition _ Subtraction * Multiplication / Division % Module
  • 9. #include<stdio.h> #inlude<conio.h> Void main( ) { int a,b; Clrscr( ); Printf(“Enter the two value:n”); Scanf(“%d%d”,&a&b); Printf(“addition:n”,a+b); Printf(“subtraction:n”,a-b); Printf(“multiplicationm:n”,a*b); Printf(“division:n”,a/b); Printf(“module division:/n”,a%b); getch(); }
  • 10.  a relational operator checks the relational between two operands . If the relation is true ,it returns 1; if the relation is false , it returns value 0.relational operator are used in decision making and loops operator meaning < Is less than <= Is less than or equal to > Greater than >= Is greater than or equal to == Is equal to != Is not equal to
  • 11. #include<stdio.h> #include<conio.h> Void main( ) { int a,b; clrscr( ); Printf(Enter the two value:n”); Scanf(“%d%d,&a&b); If(a>b) { Printf(“A is the greater than:n”) } Else { Printf(“A is the greater than :/n”) } Getch( ) }
  • 12.  We use logical operator to perform various logical operations on any set of given expressions . logical operator meaning && Logical AND || Logical OR ! Logical NOT
  • 13. #include<stdio.h> #include<conio.h> Void main( ) { int a=40,b=20,c=30,D=40; clrscr( ); If(a>b&&c<d) Printf(A is greater than B OR D is greater than C”); Else Printf(logical OR function does not satisfied ”) Getch( ) }
  • 14.  Assignment operator are used to assigning value to a variable.  Left side operand of the assignment operator is a variable and right side operand of the assignment operator is a value compound assignment equivalent assignment A>>=B A=A>>B A&=58 A=A&58 A|=B A=A|B A^=B A=A^B A/=(B+C) A=A/(B+C) A%=(X%10) A=A%(X%10)
  • 15. PROGRAM: #include <stdio.h> #include<conio.h> Void main( ) { Int a=10,b=20 Clrscr( ); Printf(“A%d”,a); Printf(“n B%d”,b) a=a+b Printf(“nA%d”,a); Getch( ) }
  • 16.  ++ and - - operators are called increment and decrement operators.  they are unary operator needing only one operand.hence ++ as well - - operand can appear before or after the operand with same effect. compound assignment equivalent assignment A>>=B A=A>>B A&=58 A=A&58 A|=B A=A|B A^=B A=A^B A/=(B+C) A=A/(B+C) A%=(X%10) A=A%(X%10)
  • 17. PROGRAM: #include<stdio.h> #include<conio.h> Void main ( ) { Int a=10, Clrscr( ) Printf(“A++ is ,%d”,a++); Printf(“n A is ,%d”, a); Getch( ); }
  • 18.  conditional operator is a single programming statement ,while the if-else statement is a programming block in which statements come under the pranthesis. exp 1,exp 2, exp 3  This operator is used as a pointer to a variable . comma operator size of the operator
  • 19.  bitwise operator are character that represent action(bitwise operation) to be performed on single bits .  they operate at the binary level and perform operation on bit patterns that involve the manipulation of individual bits . operator meaning & bitwise AND | Bitwise OR ^ Bitwise exclisive OR << Left shift >> Right shift ~ One’s complement
  • 20. PROGRAM: #include<stdio.h> #<inlude<conio.h> Void main( ) { Int test=1; Int number; Printf(“input a numbern”) Scanf(“%d”,& number); While(number!=-1) { If(number&test) Printf(“Number is odd n”); Else Printf(“Number is even n”); Printf(“input a numbern”); Scanf(“%d”,&number); } }