Skip to main content
Open navigation menu
Close suggestions
Search
Search
en
Change Language, English
Upload
Sign in
Sign in
0 ratings
0% found this document useful (0 votes)
13 views
57 pages
Principles of Programming Using C Module 2
arithmetic relational logic operators, for loop, whilw loop, do while loop, switch, if, if else, nested loop
Uploaded by
Raghu
AI-enhanced title
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Principles of programming using C Module 2 For Later
Share
0%
0% found this document useful, Mark this document as useful
0%
0% found this document not useful, Mark this document as not useful
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
13 views
57 pages
Principles of Programming Using C Module 2
arithmetic relational logic operators, for loop, whilw loop, do while loop, switch, if, if else, nested loop
Uploaded by
Raghu
AI-enhanced title
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Go to previous items
Download
Save
Save Principles of programming using C Module 2 For Later
Share
0%
0% found this document useful, Mark this document as useful
0%
0% found this document not useful, Mark this document as not useful
Print
Embed
Report
Go to next items
Download
Save Principles of programming using C Module 2 For Later
Fullscreen
Module 2 . Operatoar in c Arn operates aa tymbol thal- Spe te Lie malhemahial » logetal on sulalonos operation. fo be Penito sumed, c language Suppoxs chi bénent lyfe oF operatooa , Hal ae Cabegori ded ink. * Asuthmelic openatomu 52 | Ot az 4,b=3 We3=27 als 23 q+3 =12 9-3 =6 I1+-3=0 (Reracuinchs) © Alatronad gpeato su : ob 2s ale known ar Compare sion. operates, Niche Goenpesses kioo values, eempoestons thal Contain. sulohoncl gpenatoon cox Called * Rlahonol Expreusion” Ralahagnol operate ouluan Lue ox tale Value fe 10x 0 suuspechuely Scanned with CamScannerre operate Meoning Ex: < hus thin — 3<5 gee a @ > Govala Han 174 ge O <2 Lex than 0x 100 = 190 gv 1. Equal Is >= oa Syed 50> = 100 Fives 0. Checrerclia a es iclened a valid qpenands, Sire Hey arn supereenkd by numeie valua. Ex: “A <'e’ [anaes 68 2 66 Bagg Df - nebo 1. gre hes operates cote Eaaludld avert Let! bo aught r Al- couthmdc Lxpruniory Coe. vud in &tha Mole ot a alabondl operator, then 18! an thrabye Exprusioy will be Evaluald , Hen the sumtls will be fompeud Few move zxamply_ OL xl, VEZ & AES thy (x) pp esoon CO) peony cx+9) * Pal: bo ae palleal L Cees 5 TRUE. “4 (fee! Fbese, | (2 t10-5# Phan value ae DT hear Value w-aty) ‘ Cyne . c 4b nol: Bue, 1k Boo. Scanned with CamScanner: Equally op vale 2 c language suppoals 2 binds of Sgually ope alos. L Compan Has optnands. They 022, oe) bs == ve fgyic) a Thue have [sox prrcedant. than’ Ub aubhopil aperales Operatoa_ Pebeims 41 tt both. operands au Equal 0 ofhemiu fe Rhian 2 i+ aperands clo nol have hh Sar value bp obhemsize. - fogitos op exaboau: c language Aupporls 3 logy tal gpenatoau logilol anv C46) logitad oR Cit) logied NOT C2) ataar , wohich evolualy Jogelal AND : 21 ct Binwry 4 a yyalucs Table shows Hs leg able ot- lngtad anid operated - 0: FALSE J » TRUE ; fs (B [AGEG| c+ bolh com Laue, fen sutullt will o be Lue fa: (a 2b) &4 (b>) 94 bor lobdifron ove fant, Maen npole Expnewron pill Be Lite. Scanned with CamScanner4 Logitol OB» Tiible sens its tout able ‘ g+ any om Expausen a boule Her sul 1s baue. kx: (aeb)n (ze) D4 any om Lendihon Lue, 02 both the. Londhom an Lite , ere whole Erysubor pil be Lue. og: lod Not : gt aku a Arnyle expansion by negoli th Value or bh Exp neu On, dua aord Lhe Ey auton Leolials A) iA | oF pa 2 ot.) fe @ nen-due value & proddten a‘ ! D 1d the Eempouson paoducn A Eero: int azlo, bJ eee (oo te valu b= 0] . aznon-2uo !14=0, ent Unoouy ponealia Thee operaless ack on singe | "ol inched Unary minus, Incnerin|- te Axcreaed a Uncen rains (-) i The pperaha ss preceedad ky a minw sg” Ba: tat a, b=10; ae Ce) Keasulh 4 a=iP 94 no. 4 -ve, Hhua i) belome re Atha apply Lk uno pws opunciox op eranth Scanned with CamScannerb: Dn coum ent- operabin Ce +) & Decsumeni- openab ae ~) > . Thu op enale on (reuae on dicsnaur Lr Value of i gperand hy 4 Thue operates have 2 Vosienl pohzx & pos x Exporucen, [he openalen + eqppr ical bax. Jna pouh lufow an operand is foldhd. tox. Lemputatren- bes tte OF —— H. Ina pusthx Expou o7, the operator 7 apphed athr an operand in felched. Ea: ink % 10,95 Yextrs Row a+thr Computation, yen then x= x1. Re yelo Hun ne=il 94 YottXs Hore actha Compal en. ye xtl » 9=%) well, Yells wR Same apples aoa uniny Menenent- gpenalose + Goncibvonel gperaton Thi onl alu Lallbed a teynury oprraton @ 2) Thiet an ud, whin hoo OR more allennatiog dan an Expruton. “Th Bynlar wa xa 7 Oxph + CHP Scanned with CamScannerBaxi: large = (a>b)2 a:b \ 94 aun oh thea lange =a Ehe large =b. © % So peu laage 2aon b but nol hoth. Exe: int a5, be3, C27, Small; Small = (@ Bn: ~ 1010 10i = 81010100 Shit opewha: c Suppor 2 bilwin shibl perma Thay ann Ship-letk C<<) & shtt-sight (>>) The synkx a operand op num Kn: 94 a = 0001 110) w~<<| pow cluces 0011 Iolo Heck prtokucer 110! p00 ty. nel prodacu po00 1110 n>27k ps ducu. 0000 vool : Aadgn rant operulias ured ts ausign Ha Valu bs Le yauably = operabos us vue, fa: ink 22, 423, Somz0; [9h will cue’ Variable n with & 4 Y with 3} [pth lomputaon; som=5, Variuble vill be Neth Arde 19hich is olrgred 01th Vai hee Som =x +y; in th. ough Aide") Ene: Aa=b=c=l0; # Scanned with CamScannere This opouba inc lobes Luio e* operands Br: int az2, 623, %=20, ° lomma openalon ' x = (+t+a, b+=a); OF wonkk by gat ucthing The yeh label rhs Valen, & ben tealsala te 2 5, srebeinrs Ihe Valua cu Lh swull o- the Exponent en Sk Suobuoly 4++Q az2tl=s nexl- swobuabi beeq re bs bta =3+3=6 Db adsign 6 | ss. Fide OF sporalon: pla a vreny opera Used Le Calulaly Me Siac of dala Mgfes. In jpxofiem, Phe keg azo ‘seaeok, 1 Fellosed by ao byfe name, Yoo able or suuiean - OI Ahraminy Lig arnount- oF bremlly Specs Phat Phe Variable hr xpaeccies Chale: gfe vill tee ka: int acto; wrnigned in| steal; ataull- = Siaot- Ca); Adhnr Execution, naulk=2 it & TA an integer, rh sequins 2 by vt Slonuge “pace Scanned with CamScanner2 penabox Pruecodance choal- 7 he operalox have Loo pnopethts: poorly and auatoh arly Priosibs : shen an aunion his mor then Bre openalor , pouddily Lbermiry Ma onda in yohich the Expriewion vill bs Evaliabed. Axobahvilg: pb dedina the Siseckon in which the. op eralan ach on the operands Brit. He B*R +56, = 124646 [mutliplcakon ban hag hes} = AS Pouddity He + & — C Pou Gana) od all ase +/- then edt lo Be t= Ska onc aught ciondron (A uobahv'y) =l2 +30 = Ae B me sCersyre — [ Bowuckel aoe highal pordity = at a%e Hare meilhemahtod gperaleas = 2776 ten ely = 162 m2 a* ben s/o ot 1, au thew 12% 5/2 withoul- baackd , -Acr_ B/e lett te oughl~ will ke I Peretonmaed | eww co TT > leAY bo oust: x [ofs —> lat oughl- 2 Ddk to 20g ee ae leat fo sug Scanned with CamScannerEacampls on Operctoay | Wuk a progam L perloxm- addition , Sublauchin. clivision, integen divisnvon, muthphcabon and modulo division on bizo inheger numbexs # include int main c) \ ik NumiAuMe » AN- add sesso, Sub-mv=0,mul-mo=o, idiv-sw =o, modiv- mes =0 5, Cloak tdbv-meszova: Clasexcy; Paik C8\n Enter Hu 18h number’): Scant C% yd, &ouma) > Pant CS An Enben the 2% numer”): Scant C* ved") kmume)s add mes= Kuma 4nume- Sub mes = Homa - Dome; mul _ mes = NEMA * ume; ives = NUMMYnume 5 modiv mes = numd'le nume Fay -mes= Celoat) numyrums! Print t CS \n fed 70 d2%4num a | sunt adeh_sred), Pouatt Co An ted -Yedixdnuma | nume, sub-28), Paik ECS \n nd * 7. domuma , num2, mul! sw), Pount On ted Jd = ee), numa, ume, idiv faa): Print t (\n7.d Yond = fod” Nut, nume, modiy sues): Pairk CAm nd fad = %-265 numt, num, tdivemes): alton oy a 3 Scanned with CamScanner6 - Output Enter tae VS numbers 4 Enter th end aumben . 4 Ax Tale 9-428 A*4 263 ala =\ Ahr ee Va =e le et 2 cligts abla eCrmoh rei) Exe: boss a pouftem fo sulknak & lon inkegey # indudh int main ¢ 9 L Loney ink num =(23kSe7, NUMe ,cdiH=0; cliscw¢ 25 Pour CY \n enter the numbers”), Scant Ch ved", & numa), AiKE = oum a —mume; Paunke Co Wn Diteaene = ad) Ait); areluan 0; 3 Output Enver the Numbers 1234 bDilkenene = 1233333 Scanned with CamScanner6 ee Pawog © le show Le ve ot au lalonal gpercilox oe # rncludk estdio b> ink maine) b ink y 210, y =205 Poinke CX\n pd e nde WA", HY KEY % Pounyt CS \n id = Reae oY he); Pont CO \n edb dend’, Xe, *12Y)5 Pointe (And > aA Pont Co \nrd 7= “dd Ponte CS \a inden nd ah aehon 0; Output lo
20 =0 lo > =20 =0 loe= 20 =\ sa Condition aa Fauve, aesutte ill bet othanaie 0} Ka: pel th gulpuk don te oe poapuorn. # toclude ink main ¢) ! int num=3; Printt (8 \n The value of num = hd’, num); Panké (° \n The Value of ++ num =n", ++num)- pour (8 \n The nen value oF num = ted", nun), pouakt (8 \n The value ol num = 4d" num), Scanned with CamScanner
You might also like
Logic Design Engineering Notes
PDF
No ratings yet
Logic Design Engineering Notes
53 pages
AKU PPS Pyq 2019
PDF
No ratings yet
AKU PPS Pyq 2019
11 pages
CS8251
PDF
No ratings yet
CS8251
29 pages
Python Theory PDF Doc 08-24-2025 14.39..
PDF
No ratings yet
Python Theory PDF Doc 08-24-2025 14.39..
15 pages
C Language 1
PDF
No ratings yet
C Language 1
15 pages
BCA Unit 2
PDF
No ratings yet
BCA Unit 2
34 pages
Prefix and Operand Evaluation Guide
PDF
No ratings yet
Prefix and Operand Evaluation Guide
38 pages
C Programming Exam Paper MTB-503
PDF
No ratings yet
C Programming Exam Paper MTB-503
13 pages
Chapter - 8 Operators and Expressions
PDF
No ratings yet
Chapter - 8 Operators and Expressions
17 pages
Module 2 Cs Sem 1 Notes
PDF
No ratings yet
Module 2 Cs Sem 1 Notes
15 pages
C Language Notes Include Programs
PDF
No ratings yet
C Language Notes Include Programs
132 pages
FCS-Answer Key
PDF
No ratings yet
FCS-Answer Key
32 pages
C Programming: Functions and Pointers
PDF
No ratings yet
C Programming: Functions and Pointers
13 pages
B.tech - 4TH Sem - Common - Python Programming - Unit-1 - Notes PDF 2025
PDF
No ratings yet
B.tech - 4TH Sem - Common - Python Programming - Unit-1 - Notes PDF 2025
18 pages
BCSL-058 (Ignou Bca Semester 5)
PDF
No ratings yet
BCSL-058 (Ignou Bca Semester 5)
25 pages
PPS Module 1
PDF
No ratings yet
PPS Module 1
10 pages
Python 1
PDF
No ratings yet
Python 1
19 pages
Data Type Part 2
PDF
No ratings yet
Data Type Part 2
16 pages
Basics of C Programming
PDF
No ratings yet
Basics of C Programming
12 pages
CPPS Assignment 1
PDF
No ratings yet
CPPS Assignment 1
6 pages
Unit2 Coa
PDF
No ratings yet
Unit2 Coa
52 pages
Digital System Design Overview
PDF
No ratings yet
Digital System Design Overview
40 pages
FPL Set A
PDF
No ratings yet
FPL Set A
13 pages
Python Basics and Combn Function
PDF
No ratings yet
Python Basics and Combn Function
13 pages
C Operators Overview in Programming
PDF
No ratings yet
C Operators Overview in Programming
22 pages
PPS Imp Question Answers
PDF
No ratings yet
PPS Imp Question Answers
16 pages
Programming in C
PDF
No ratings yet
Programming in C
49 pages
Binary Division and Multiplication Methods
PDF
No ratings yet
Binary Division and Multiplication Methods
7 pages
Algorithm - Basics 13 10 2025 14 46
PDF
No ratings yet
Algorithm - Basics 13 10 2025 14 46
53 pages
C Basics
PDF
No ratings yet
C Basics
20 pages
SQL Chap3
PDF
No ratings yet
SQL Chap3
14 pages
PC Observation 7
PDF
No ratings yet
PC Observation 7
34 pages
CTP Unit - 1
PDF
No ratings yet
CTP Unit - 1
18 pages
CA-unit 3-Fixedpoint Addition, Subtraction, Multiplication, Division
PDF
No ratings yet
CA-unit 3-Fixedpoint Addition, Subtraction, Multiplication, Division
29 pages
Python Programming Handwritten .Notes
PDF
No ratings yet
Python Programming Handwritten .Notes
109 pages
Digital System and Design
PDF
No ratings yet
Digital System and Design
19 pages
Ddco Mod1
PDF
No ratings yet
Ddco Mod1
21 pages
Dar
PDF
No ratings yet
Dar
18 pages
Ca Neha-02 - Merged
PDF
No ratings yet
Ca Neha-02 - Merged
13 pages
Unit 3 Deld Notes
PDF
No ratings yet
Unit 3 Deld Notes
34 pages
DocScanner 06-Jan-2025 7-52 PM
PDF
No ratings yet
DocScanner 06-Jan-2025 7-52 PM
13 pages
Cao Unit-3
PDF
No ratings yet
Cao Unit-3
65 pages
CAO Notes
PDF
No ratings yet
CAO Notes
25 pages
CS8251
PDF
No ratings yet
CS8251
31 pages
Qualitron 2450
PDF
No ratings yet
Qualitron 2450
15 pages
INF1511 Exam Pack 2022 Visual Programming (Chapter 2)
PDF
No ratings yet
INF1511 Exam Pack 2022 Visual Programming (Chapter 2)
18 pages
Class 10 Maths Practical Guide
PDF
No ratings yet
Class 10 Maths Practical Guide
14 pages
Digital Logic Notes
PDF
No ratings yet
Digital Logic Notes
63 pages
Computer Science Notes
PDF
No ratings yet
Computer Science Notes
36 pages
COA Assignment I...
PDF
No ratings yet
COA Assignment I...
15 pages
Programming Concepts and Problem Solving
PDF
No ratings yet
Programming Concepts and Problem Solving
23 pages
Data Flow Modeling in RTL Design
PDF
No ratings yet
Data Flow Modeling in RTL Design
19 pages
C Program for Stack and Queue Operations
PDF
No ratings yet
C Program for Stack and Queue Operations
25 pages
ADA Notes
PDF
No ratings yet
ADA Notes
50 pages
Smart Interviews Notes
PDF
No ratings yet
Smart Interviews Notes
75 pages
Understanding Multiplexers and MUX Design
PDF
No ratings yet
Understanding Multiplexers and MUX Design
22 pages
DBMS - Unit 5
PDF
No ratings yet
DBMS - Unit 5
22 pages
Python Operators
PDF
No ratings yet
Python Operators
5 pages
Basic Handnote of CSE-101 Course
PDF
No ratings yet
Basic Handnote of CSE-101 Course
43 pages
C Language Operators Explained
PDF
No ratings yet
C Language Operators Explained
104 pages
Efficient Program Design Paradigms
PDF
No ratings yet
Efficient Program Design Paradigms
136 pages
Introduction to Computer Basics
PDF
No ratings yet
Introduction to Computer Basics
136 pages
C Programming Principles Question Bank
PDF
No ratings yet
C Programming Principles Question Bank
5 pages
Principles of Prograqmming Using C Module 5
PDF
No ratings yet
Principles of Prograqmming Using C Module 5
57 pages
Principles of Programming Using C Module 4
PDF
No ratings yet
Principles of Programming Using C Module 4
45 pages
Principles of Programming Using C Module 1 Written Notes
PDF
No ratings yet
Principles of Programming Using C Module 1 Written Notes
72 pages