This document provides an introduction to the C programming language by Yogendra Pal. It discusses basic C concepts like data types, arithmetic operators, assignment operators, unary operators, operator precedence, and provides examples of simple programs to add two numbers, calculate the average of two numbers, and convert between kilometers and meters. The document encourages the reader to solve practice problems and quizzes on the provided website and to email the author with any questions.
Get more from www.programmingcampus.com
Operators in c programming
-definition of operator
-types of operators
1.Arithmetic operators.
2. Relational operators.
3. Logical operators.
4. Assignment operators.
5. Increment & decrement operators.
a. pre and post increment operator
b. pre and post increment operator
6. Conditional operators.
7. Bitwise operators.
8. Special operators
C Building Blocks
• Variable and Types of Variables
• Input Functions: scanf() and getche()
• Arithmetic Operators
– Arithmetic Assignment Operators
– Increment/Decrement Operators
• Relational Operators
• Comments in C
4. operators in c programming by digital waveRahulSharma4566
For Video Tutorial Click on Link:
https://youtu.be/u9eSpH3NTFg
https://youtu.be/mzxYbU4t2VY
https://youtu.be/Xv5nPe2y2w8
Bitwise Operators
Advance and Basic concepts of C PRogramming
Bitwise AND, OR, XOR, NOT, RIGHT & LEFT SHIFT
What is Bitwise Operator?
What are the types of Bitwise operators?
What is the Bitwise AND operator?
What is the Bitwise OR operator?
What is Operator?
What are the types of operators?
What is the unary operator?
What are the types of unary operators?
What is Post Increment Operator
What is Pre Increment Operator?
Unary Operators
Relational Operators
Logical Operators
Digital Wave
#OperatorsinCProgramming
#typesofoperatorincprogramming
#Relational OperatorinC
# LogicalOperatorinC
# LogicalANDoperatorinc
# LogicalOROperatorinc
# LogicalXOROperator
#IntroductionofProgammingInC
Get more from www.programmingcampus.com
Operators in c programming
-definition of operator
-types of operators
1.Arithmetic operators.
2. Relational operators.
3. Logical operators.
4. Assignment operators.
5. Increment & decrement operators.
a. pre and post increment operator
b. pre and post increment operator
6. Conditional operators.
7. Bitwise operators.
8. Special operators
C Building Blocks
• Variable and Types of Variables
• Input Functions: scanf() and getche()
• Arithmetic Operators
– Arithmetic Assignment Operators
– Increment/Decrement Operators
• Relational Operators
• Comments in C
4. operators in c programming by digital waveRahulSharma4566
For Video Tutorial Click on Link:
https://youtu.be/u9eSpH3NTFg
https://youtu.be/mzxYbU4t2VY
https://youtu.be/Xv5nPe2y2w8
Bitwise Operators
Advance and Basic concepts of C PRogramming
Bitwise AND, OR, XOR, NOT, RIGHT & LEFT SHIFT
What is Bitwise Operator?
What are the types of Bitwise operators?
What is the Bitwise AND operator?
What is the Bitwise OR operator?
What is Operator?
What are the types of operators?
What is the unary operator?
What are the types of unary operators?
What is Post Increment Operator
What is Pre Increment Operator?
Unary Operators
Relational Operators
Logical Operators
Digital Wave
#OperatorsinCProgramming
#typesofoperatorincprogramming
#Relational OperatorinC
# LogicalOperatorinC
# LogicalANDoperatorinc
# LogicalOROperatorinc
# LogicalXOROperator
#IntroductionofProgammingInC
Chapter 3 INSTRUCTION SET AND ASSEMBLY LANGUAGE PROGRAMMINGFrankie Jones
3.1 UNDERSTANDING INSTRUCTION SET AND ASSEMBLY LANGUAGE
3.1.1 Define instruction set,machine and assembly language
3.1.2 Describe features and architectures of various type of microprocessor
3.1.3 Describe the Addressing Modes
3.2 APPLY ASSEMBLY LANGUAGE
3.2.1 Write simple program in assembly language
3.2.2 Tool in analyzing and debugging assembly language program
The simplified electron and muon model, Oscillating Spacetime: The Foundation...RitikBhardwaj56
Discover the Simplified Electron and Muon Model: A New Wave-Based Approach to Understanding Particles delves into a groundbreaking theory that presents electrons and muons as rotating soliton waves within oscillating spacetime. Geared towards students, researchers, and science buffs, this book breaks down complex ideas into simple explanations. It covers topics such as electron waves, temporal dynamics, and the implications of this model on particle physics. With clear illustrations and easy-to-follow explanations, readers will gain a new outlook on the universe's fundamental nature.
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
A workshop hosted by the South African Journal of Science aimed at postgraduate students and early career researchers with little or no experience in writing and publishing journal articles.
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
বাংলাদেশের অর্থনৈতিক সমীক্ষা ২০২৪ [Bangladesh Economic Review 2024 Bangla.pdf] কম্পিউটার , ট্যাব ও স্মার্ট ফোন ভার্সন সহ সম্পূর্ণ বাংলা ই-বুক বা pdf বই " সুচিপত্র ...বুকমার্ক মেনু 🔖 ও হাইপার লিংক মেনু 📝👆 যুক্ত ..
আমাদের সবার জন্য খুব খুব গুরুত্বপূর্ণ একটি বই ..বিসিএস, ব্যাংক, ইউনিভার্সিটি ভর্তি ও যে কোন প্রতিযোগিতা মূলক পরীক্ষার জন্য এর খুব ইম্পরট্যান্ট একটি বিষয় ...তাছাড়া বাংলাদেশের সাম্প্রতিক যে কোন ডাটা বা তথ্য এই বইতে পাবেন ...
তাই একজন নাগরিক হিসাবে এই তথ্য গুলো আপনার জানা প্রয়োজন ...।
বিসিএস ও ব্যাংক এর লিখিত পরীক্ষা ...+এছাড়া মাধ্যমিক ও উচ্চমাধ্যমিকের স্টুডেন্টদের জন্য অনেক কাজে আসবে ...
it describes the bony anatomy including the femoral head , acetabulum, labrum . also discusses the capsule , ligaments . muscle that act on the hip joint and the range of motion are outlined. factors affecting hip joint stability and weight transmission through the joint are summarized.
This presentation was provided by Steph Pollock of The American Psychological Association’s Journals Program, and Damita Snow, of The American Society of Civil Engineers (ASCE), for the initial session of NISO's 2024 Training Series "DEIA in the Scholarly Landscape." Session One: 'Setting Expectations: a DEIA Primer,' was held June 6, 2024.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
Delivering Micro-Credentials in Technical and Vocational Education and TrainingAG2 Design
Explore how micro-credentials are transforming Technical and Vocational Education and Training (TVET) with this comprehensive slide deck. Discover what micro-credentials are, their importance in TVET, the advantages they offer, and the insights from industry experts. Additionally, learn about the top software applications available for creating and managing micro-credentials. This presentation also includes valuable resources and a discussion on the future of these specialised certifications.
For more detailed information on delivering micro-credentials in TVET, visit this https://tvettrainer.com/delivering-micro-credentials-in-tvet/
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...NelTorrente
In this research, it concludes that while the readiness of teachers in Caloocan City to implement the MATATAG Curriculum is generally positive, targeted efforts in professional development, resource distribution, support networks, and comprehensive preparation can address the existing gaps and ensure successful curriculum implementation.
Safalta Digital marketing institute in Noida, provide complete applications that encompass a huge range of virtual advertising and marketing additives, which includes search engine optimization, virtual communication advertising, pay-per-click on marketing, content material advertising, internet analytics, and greater. These university courses are designed for students who possess a comprehensive understanding of virtual marketing strategies and attributes.Safalta Digital Marketing Institute in Noida is a first choice for young individuals or students who are looking to start their careers in the field of digital advertising. The institute gives specialized courses designed and certification.
for beginners, providing thorough training in areas such as SEO, digital communication marketing, and PPC training in Noida. After finishing the program, students receive the certifications recognised by top different universitie, setting a strong foundation for a successful career in digital marketing.
How to Add Chatter in the odoo 17 ERP ModuleCeline George
In Odoo, the chatter is like a chat tool that helps you work together on records. You can leave notes and track things, making it easier to talk with your team and partners. Inside chatter, all communication history, activity, and changes will be displayed.
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Dr. Vinod Kumar Kanvaria
Exploiting Artificial Intelligence for Empowering Researchers and Faculty,
International FDP on Fundamentals of Research in Social Sciences
at Integral University, Lucknow, 06.06.2024
By Dr. Vinod Kumar Kanvaria
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Arithmetic instructions
1. C Programming
Language
By:
Yogendra Pal
yogendra@learnbywatch.com
Dedicated to My mother and Father
2. t
y
Keep your notebook with you.
Write important point and questions that comes in your mind
Solve Mind band exercise.
C
Rewind when not clear
Ask Questions by call or SMS or by mail
Keep Watching Keep Learning
THIS IS ARITHMETIC INSTRUCTIONS
2
3. What do you know?
• printf() function?
• scanf() function?
• How to write a simple C program?
• How to compile and run it?
• If answers are yes then you can go ahead.
3
4. Problem
• Write a program to add two numbers. These
numbers must input by user.
• For addition (+) we need arithmetic operators.
4
5. Arithmetic Operators
• * : multiplication y z
2 4
• / : division
• + : addition
• - : subtraction 2+4
x
• % : modulus operator 6
• Variable = constant;
– x = y + z;
5
6. Result of each operator
• 2*3=6
• 4/2=2
• 4+2=6
• 4–2=2
• 4%3=1
• 4%2=0
6
7. Some Constraints
• Arithmetic operators act on numeric values.
– (int/float/char) operator (int/float/char)
– character represents numeric (ASCII) value.
• Modules operator works only when
– int % int (non-zero).
• Division operator works only when
– (int/float/char) / (non-zero value).
7
8. You must know
• int / int = int
• (int / float) = float
• (float / int) = float
• (float / float) = float
8
9. Assignment Operator =
• Assign expression value to an identifier.
• identifier = expression or variable = constant.
• If both operand are of different data types
then right side value convert into the data
type of left side identifier.
• Multiple assignment execute from right to left.
– x = y = z = 5.
9
10. More Assignment Operator…
• *=, /=, %=, +=, -= know as compound
assignment operator.
• x += 1; means x = x + 1;
• a -= b; means a = a – b;
• m %= (n-7); means m = m % (n-7);
10
11. Addition of two numbers
start start
#include<stdio.h>
#include<conio.h>
Define a,b,c int a,b,c
void main()
initialize b,c b = 4, c = 2 {
int a, b, c;
a=b+c a=b+c b = 4;
c = 2;
print a print a a = b + c;
printf(“%d”,a);
getch();
stop stop }
11
12. Unary Operators
• Operate upon single operand.
• - (unary minus)
• + (unary plus)
• -- (decrement operator) : decrement by 1
– i--; or --i; equal to i = i -1;
• ++ (increment operator) : increment by 1
– i++; or ++i; equal to i = i +1;
12
13. Unary Operator…
• sizeof : returns the size (bytes) of operand.
– printf(“integer: %d”,sizeof(i));
• Type Cast is also a unary operator.
• Type Cast changes the data type of operand.
– (Type) operand;
– float a = 3.7;
– (int)a;
13
14. Operator precedence
Operator Operation Precendence
() Parentheses Evaluate First,
Innermost first,
Left to right.
-, +, --, ++, Unary operators Right to left
sizeof, (type)
*, / or % Multiplication, Division or Left to right.
modulus
+ or - Addition and subtraction Left to right.
= Assignment (Multiple) Right to left.
14
17. Calculate the average
start start
Define a,b,c Define a,b,c
initialize b,c initialize b,c
a=b+c/2 a=(b+c)/2
print a print a
stop stop
17
18. Problem
• Write a program to convert a value from
kilometer to meter.
• Formula to convert km in to meter is:
– 1 km = 1000 m so,
– n km = 1000 * n m
• Now you can solve any formula based
problem.
18
19. Problem…
• Write a program that convert a lowercase
character to uppercase character.
• Write a program to calculate the area and
circumference of the circle.
• Two numbers (x and y) are entered through the
keyboard. Write a program to interchange the
value of x and y.
• Write a program that print reverse of a 5 digit
given number.
19
20. Problem…
• Write a program that calculate the root of a
quadratic equation.
– ax2 + bx + c = 0.
• Input marks of five subjects of a student and
write a program to calculate and print addition
and percentage of that student.
20
21. Mind Bend
• Write a program that convert a uppercase
alphabet to lowercase alphabet.
• Write a program to calculate the area and
perimeter of rectangle.
• Write a program that print reverse of a 3 digit
given number.
21
22. To get complete benefit of this tutorial solve all the quiz on
www.learnbywatch.com
For any problem in this tutorial mail me at
yogendra@learnbywatch.com
with the subject “C”
For Other information mail at
info@learnbywatch.com
Keep Watching Keep Learning
NEXT IS DECISION CONTROL
22