SlideShare a Scribd company logo
1
What is programming?
Input:
A command which is
given by the
programmer
e.g.
We are EEE family
(We want to print out
what we’ve written)
Processing Unit:
 Analysing the command
 Converting input command in
binary data
 Process the binary command
 Converting to aspect result
e.g.
i. We are EEE family = 0101…..
ii. Process 0101……
iii. 0101= We are EEE family
Output:
Result of the process
e.g.
We are EEE family
(Computer’ve printed
out what we had
wanted to write)
2
What is compiler?
Compilers we specially require:
• Code-blocks (for c or c++ programming)
• Net-Beans (for Java or Android programming)
3
4
C Symbolic patterns
General knowledge of C coding:
CODING:
5
#include <stdio.h>
//include standard input & output numbers
#include <stdlib.h>
//include standard library numbers
int main()
// main function , integer type ,not including any arguments
{
printf(" ");
// means new line
return 0;
//main function doesn’t return any value
}
6
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf(" ");
return 0;
}
Data types:
7
Bytes Required:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a;
float b;
char c;
int s1,s2,s3;
s1=sizeof(a);
s2=sizeof(b);
s3=sizeof(c);
printf ("%d %d %d ",s1,s2,s3);
return 0;
}
 An integer requires 4 bytes
of Memory
 A float requires 4 bytes of
Memory
 A character requires 1 byte
of Memory
 A string requires (x + Null)
bytes . Here x is its total
bytes of characters
Some important Functions & Features:
8
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i;
for (i=0;i<10;i++)
{
printf("%dn",i);
}
for (i=9;i>=0;i--)
{
printf("%dn",i);
}
return 0;
}
9
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i=0;
while(i<10)
{
printf("%dn",i);
i++;
}
int y=1;
while(y==1)
{
printf("while function is working n");
printf("Press 1 to continue else any key to close:");
scanf("%d",&y);
}
return 0;
}
10
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i=0;
do
{
printf("%dn",i);
i++;
}
while(i<10);
return 0;
}
11
Array
12
User define function:
13
User define function:
14
Pointer variable:
15
C programs 16
17
18
19
20
21
22
23
24
25
int factorial (int a)
{
int i,b=1;
for (i=1;i<=a;i++)
{
b=b*i;
}
return(b);
}
26
27
28
29
30
31
32
33
34

More Related Content

Viewers also liked

Data structures / C++ Program examples
Data structures / C++ Program examplesData structures / C++ Program examples
Data structures / C++ Program examplesKevin III
 
Learning c - An extensive guide to learn the C Language
Learning c - An extensive guide to learn the C LanguageLearning c - An extensive guide to learn the C Language
Learning c - An extensive guide to learn the C Language
Abhishek Dwivedi
 
Presentation Active Listening
Presentation Active ListeningPresentation Active Listening
Presentation Active Listeningirina_dragnea
 
Active Listening Presentation
Active Listening PresentationActive Listening Presentation
Active Listening Presentation
kdbourque
 
Basics of C programming
Basics of C programmingBasics of C programming
Basics of C programming
avikdhupar
 
Active Listening for Well Being
Active Listening for Well BeingActive Listening for Well Being
Active Listening for Well Being
Nellie Deutsch (Ed.D)
 

Viewers also liked (7)

Data structures / C++ Program examples
Data structures / C++ Program examplesData structures / C++ Program examples
Data structures / C++ Program examples
 
Learning c - An extensive guide to learn the C Language
Learning c - An extensive guide to learn the C LanguageLearning c - An extensive guide to learn the C Language
Learning c - An extensive guide to learn the C Language
 
Presentation Active Listening
Presentation Active ListeningPresentation Active Listening
Presentation Active Listening
 
Active Listening Presentation
Active Listening PresentationActive Listening Presentation
Active Listening Presentation
 
Interpersonal skills
Interpersonal skillsInterpersonal skills
Interpersonal skills
 
Basics of C programming
Basics of C programmingBasics of C programming
Basics of C programming
 
Active Listening for Well Being
Active Listening for Well BeingActive Listening for Well Being
Active Listening for Well Being
 

Similar to Learning c programming by rbm

l1-introduction_to_computers_and_c_programming.pptx
l1-introduction_to_computers_and_c_programming.pptxl1-introduction_to_computers_and_c_programming.pptx
l1-introduction_to_computers_and_c_programming.pptx
ssuser6f38e5
 
C Theory
C TheoryC Theory
C Theory
Shyam Khant
 
C Programming
C ProgrammingC Programming
C Programming
educationfront
 
Cpp
CppCpp
Lecture 1
Lecture 1Lecture 1
Lecture 1
marvellous2
 
Basics Of C++.pptx
Basics Of C++.pptxBasics Of C++.pptx
Basics Of C++.pptx
DineshDhuri4
 
C - ISRO
C - ISROC - ISRO
C - ISRO
splix757
 
C programming languag for cse students
C programming languag for cse studentsC programming languag for cse students
C programming languag for cse students
Abdur Rahim
 
General structure of c++
General structure of c++General structure of c++
General structure of c++
Ajay Chimmani
 
Programming using c++ tool
Programming using c++ toolProgramming using c++ tool
Programming using c++ tool
Abdullah Jan
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
Neeru Mittal
 
C++ AND CATEGORIES OF SOFTWARE
C++ AND CATEGORIES OF SOFTWAREC++ AND CATEGORIES OF SOFTWARE
C++ AND CATEGORIES OF SOFTWARE
UNIVERSITY OF ENGINEERING AND TECHNOLOGY TAXILA
 
C++ programming language basic to advance level
C++ programming language basic to advance levelC++ programming language basic to advance level
C++ programming language basic to advance level
sajjad ali khan
 
Lecture-01-2020J.pptx
Lecture-01-2020J.pptxLecture-01-2020J.pptx
Lecture-01-2020J.pptx
pradeepwalter
 
C structure
C structureC structure
C structure
ankush9927
 
C
CC

Similar to Learning c programming by rbm (20)

l1-introduction_to_computers_and_c_programming.pptx
l1-introduction_to_computers_and_c_programming.pptxl1-introduction_to_computers_and_c_programming.pptx
l1-introduction_to_computers_and_c_programming.pptx
 
C Theory
C TheoryC Theory
C Theory
 
Unit 5
Unit 5Unit 5
Unit 5
 
Fp201 unit2 1
Fp201 unit2 1Fp201 unit2 1
Fp201 unit2 1
 
C Programming
C ProgrammingC Programming
C Programming
 
Cpp
CppCpp
Cpp
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Basics Of C++.pptx
Basics Of C++.pptxBasics Of C++.pptx
Basics Of C++.pptx
 
C - ISRO
C - ISROC - ISRO
C - ISRO
 
C programming languag for cse students
C programming languag for cse studentsC programming languag for cse students
C programming languag for cse students
 
Lect '1'
Lect '1'Lect '1'
Lect '1'
 
General structure of c++
General structure of c++General structure of c++
General structure of c++
 
Programming using c++ tool
Programming using c++ toolProgramming using c++ tool
Programming using c++ tool
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
C++ AND CATEGORIES OF SOFTWARE
C++ AND CATEGORIES OF SOFTWAREC++ AND CATEGORIES OF SOFTWARE
C++ AND CATEGORIES OF SOFTWARE
 
Learn python
Learn pythonLearn python
Learn python
 
C++ programming language basic to advance level
C++ programming language basic to advance levelC++ programming language basic to advance level
C++ programming language basic to advance level
 
Lecture-01-2020J.pptx
Lecture-01-2020J.pptxLecture-01-2020J.pptx
Lecture-01-2020J.pptx
 
C structure
C structureC structure
C structure
 
C
CC
C
 

Recently uploaded

一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
zwunae
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
An Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering TechniquesAn Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering Techniques
ambekarshweta25
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
dxobcob
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 

Recently uploaded (20)

一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
An Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering TechniquesAn Approach to Detecting Writing Styles Based on Clustering Techniques
An Approach to Detecting Writing Styles Based on Clustering Techniques
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
一比一原版(Otago毕业证)奥塔哥大学毕业证成绩单如何办理
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 

Learning c programming by rbm

  • 1. 1
  • 2. What is programming? Input: A command which is given by the programmer e.g. We are EEE family (We want to print out what we’ve written) Processing Unit:  Analysing the command  Converting input command in binary data  Process the binary command  Converting to aspect result e.g. i. We are EEE family = 0101….. ii. Process 0101…… iii. 0101= We are EEE family Output: Result of the process e.g. We are EEE family (Computer’ve printed out what we had wanted to write) 2
  • 3. What is compiler? Compilers we specially require: • Code-blocks (for c or c++ programming) • Net-Beans (for Java or Android programming) 3
  • 5. General knowledge of C coding: CODING: 5 #include <stdio.h> //include standard input & output numbers #include <stdlib.h> //include standard library numbers int main() // main function , integer type ,not including any arguments { printf(" "); // means new line return 0; //main function doesn’t return any value }
  • 6. 6 #include <stdio.h> #include <stdlib.h> int main() { printf(" "); return 0; }
  • 7. Data types: 7 Bytes Required: #include <stdio.h> #include <stdlib.h> int main() { int a; float b; char c; int s1,s2,s3; s1=sizeof(a); s2=sizeof(b); s3=sizeof(c); printf ("%d %d %d ",s1,s2,s3); return 0; }  An integer requires 4 bytes of Memory  A float requires 4 bytes of Memory  A character requires 1 byte of Memory  A string requires (x + Null) bytes . Here x is its total bytes of characters
  • 8. Some important Functions & Features: 8 #include <stdio.h> #include <stdlib.h> int main() { int i; for (i=0;i<10;i++) { printf("%dn",i); } for (i=9;i>=0;i--) { printf("%dn",i); } return 0; }
  • 9. 9 #include <stdio.h> #include <stdlib.h> int main() { int i=0; while(i<10) { printf("%dn",i); i++; } int y=1; while(y==1) { printf("while function is working n"); printf("Press 1 to continue else any key to close:"); scanf("%d",&y); } return 0; }
  • 10. 10 #include <stdio.h> #include <stdlib.h> int main() { int i=0; do { printf("%dn",i); i++; } while(i<10); return 0; }
  • 11. 11
  • 17. 17
  • 18. 18
  • 19. 19
  • 20. 20
  • 21. 21
  • 22. 22
  • 23. 23
  • 24. 24
  • 25. 25 int factorial (int a) { int i,b=1; for (i=1;i<=a;i++) { b=b*i; } return(b); }
  • 26. 26
  • 27. 27
  • 28. 28
  • 29. 29
  • 30. 30
  • 31. 31
  • 32. 32
  • 33. 33
  • 34. 34