際際滷

際際滷Share 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 weve 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
(Computerve 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 doesnt 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
Ad

Recommended

Output
Output
Michael Gordon
Practical basics on c++
Practical basics on c++
Marco Izzotti
Devry cis-170-c-i lab-4-of-7-functions
Devry cis-170-c-i lab-4-of-7-functions
noahjamessss
Common Programming Errors
Common Programming Errors
Nicole Ynne Estabillo
My first program in c, hello world !
My first program in c, hello world !
Rumman Ansari
Minimal standard c program
Minimal standard c program
Swain Loda
Learning C and C++
Learning C and C++
Pagal Bacha
Active listening presentation
Active listening presentation
Tahreem Mehmood
Data structures / C++ Program examples
Data structures / C++ Program examples
Kevin III
Learning 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 Listening
irina_dragnea
Active Listening Presentation
Active Listening Presentation
kdbourque
Interpersonal skills
Interpersonal skills
Kanokwan Rakdee
Basics of C programming
Basics of C programming
avikdhupar
Active Listening for Well Being
Active Listening for Well Being
Nellie Deutsch (Ed.D)
cmp104 lec 8
cmp104 lec 8
kapil078
introductiontocprogramming-130719083552-phpapp01.ppt
introductiontocprogramming-130719083552-phpapp01.ppt
RutviBaraiya
Bsc cs i pic u-1 introduction to c language
Bsc cs i pic u-1 introduction to c language
Rai University
C Theory
C Theory
Shyam Khant
Diploma ii cfpc u-1 introduction to c language
Diploma ii cfpc u-1 introduction to c language
Rai University
Introduction to c programming
Introduction to c programming
ABHISHEK fulwadhwa
C Programming UNIT 1.pptx
C Programming UNIT 1.pptx
Mugilvannan11
Btech i pic u-1 introduction to c language
Btech i pic u-1 introduction to c language
Rai University
Mca i pic u-1 introduction to c language
Mca i pic u-1 introduction to c language
Rai University
introduction to c language
introduction to c language
Rai University
Introduction%20C.pptx
Introduction%20C.pptx
20EUEE018DEEPAKM
Introduction to C programming
Introduction to C programming
Kathmandu University
Lecture 01 2017
Lecture 01 2017
Jesmin Akhter
slidenotesece246jun2012-140803084954-phpapp01 (1).ppt
slidenotesece246jun2012-140803084954-phpapp01 (1).ppt
yatakonakiran2
Programming in c notes
Programming in c notes
Sudharasanam Babu

More Related Content

Viewers also liked (7)

Data structures / C++ Program examples
Data structures / C++ Program examples
Kevin III
Learning 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 Listening
irina_dragnea
Active Listening Presentation
Active Listening Presentation
kdbourque
Interpersonal skills
Interpersonal skills
Kanokwan Rakdee
Basics of C programming
Basics of C programming
avikdhupar
Active Listening for Well Being
Active Listening for Well Being
Nellie Deutsch (Ed.D)
Data structures / C++ Program examples
Data structures / C++ Program examples
Kevin III
Learning 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 Listening
irina_dragnea
Active Listening Presentation
Active Listening Presentation
kdbourque
Basics of C programming
Basics of C programming
avikdhupar

Similar to Learning c programming by rbm (20)

cmp104 lec 8
cmp104 lec 8
kapil078
introductiontocprogramming-130719083552-phpapp01.ppt
introductiontocprogramming-130719083552-phpapp01.ppt
RutviBaraiya
Bsc cs i pic u-1 introduction to c language
Bsc cs i pic u-1 introduction to c language
Rai University
C Theory
C Theory
Shyam Khant
Diploma ii cfpc u-1 introduction to c language
Diploma ii cfpc u-1 introduction to c language
Rai University
Introduction to c programming
Introduction to c programming
ABHISHEK fulwadhwa
C Programming UNIT 1.pptx
C Programming UNIT 1.pptx
Mugilvannan11
Btech i pic u-1 introduction to c language
Btech i pic u-1 introduction to c language
Rai University
Mca i pic u-1 introduction to c language
Mca i pic u-1 introduction to c language
Rai University
introduction to c language
introduction to c language
Rai University
Introduction%20C.pptx
Introduction%20C.pptx
20EUEE018DEEPAKM
Introduction to C programming
Introduction to C programming
Kathmandu University
Lecture 01 2017
Lecture 01 2017
Jesmin Akhter
slidenotesece246jun2012-140803084954-phpapp01 (1).ppt
slidenotesece246jun2012-140803084954-phpapp01 (1).ppt
yatakonakiran2
Programming in c notes
Programming in c notes
Sudharasanam Babu
Introduction to c programming
Introduction to c programming
gajendra singh
Computer Fundamentals-2
Computer Fundamentals-2
Christalin Nelson
IP Lab Manual for Kerala University 3 Year UG Programme
IP Lab Manual for Kerala University 3 Year UG Programme
SAFAD ISMAIL
Synapseindia dot net development computer programming
Synapseindia dot net development computer programming
Synapseindiappsdevelopment
CS8251_QB_answers.pdf
CS8251_QB_answers.pdf
vino108206
cmp104 lec 8
cmp104 lec 8
kapil078
introductiontocprogramming-130719083552-phpapp01.ppt
introductiontocprogramming-130719083552-phpapp01.ppt
RutviBaraiya
Bsc cs i pic u-1 introduction to c language
Bsc cs i pic u-1 introduction to c language
Rai University
Diploma ii cfpc u-1 introduction to c language
Diploma ii cfpc u-1 introduction to c language
Rai University
Introduction to c programming
Introduction to c programming
ABHISHEK fulwadhwa
C Programming UNIT 1.pptx
C Programming UNIT 1.pptx
Mugilvannan11
Btech i pic u-1 introduction to c language
Btech i pic u-1 introduction to c language
Rai University
Mca i pic u-1 introduction to c language
Mca i pic u-1 introduction to c language
Rai University
introduction to c language
introduction to c language
Rai University
slidenotesece246jun2012-140803084954-phpapp01 (1).ppt
slidenotesece246jun2012-140803084954-phpapp01 (1).ppt
yatakonakiran2
Introduction to c programming
Introduction to c programming
gajendra singh
IP Lab Manual for Kerala University 3 Year UG Programme
IP Lab Manual for Kerala University 3 Year UG Programme
SAFAD ISMAIL
Synapseindia dot net development computer programming
Synapseindia dot net development computer programming
Synapseindiappsdevelopment
CS8251_QB_answers.pdf
CS8251_QB_answers.pdf
vino108206
Ad

Recently uploaded (20)

Industrial internet of things IOT Week-3.pptx
Industrial internet of things IOT Week-3.pptx
KNaveenKumarECE
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
60 Years and Beyond eBook 1234567891.pdf
60 Years and Beyond eBook 1234567891.pdf
waseemalazzeh
retina_biometrics ruet rajshahi bangdesh.pptx
retina_biometrics ruet rajshahi bangdesh.pptx
MdRakibulIslam697135
How to Un-Obsolete Your Legacy Keypad Design
How to Un-Obsolete Your Legacy Keypad Design
Epec Engineered Technologies
Introduction to Python Programming Language
Introduction to Python Programming Language
merlinjohnsy
Microwatt: Open Tiny Core, Big Possibilities
Microwatt: Open Tiny Core, Big Possibilities
IBM
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
moonsony54
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
resming1
Unit III_One Dimensional Consolidation theory
Unit III_One Dimensional Consolidation theory
saravananr808639
Abraham Silberschatz-Operating System Concepts (9th,2012.12).pdf
Abraham Silberschatz-Operating System Concepts (9th,2012.12).pdf
Shabista Imam
Structural Wonderers_new and ancient.pptx
Structural Wonderers_new and ancient.pptx
nikopapa113
Learning Types of Machine Learning Supervised Learning Unsupervised UNI...
Learning Types of Machine Learning Supervised Learning Unsupervised UNI...
23Q95A6706
special_edition_using_visual_foxpro_6.pdf
special_edition_using_visual_foxpro_6.pdf
Shabista Imam
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
KhadijaKhadijaAouadi
AI_Presentation (1). Artificial intelligence
AI_Presentation (1). Artificial intelligence
RoselynKaur8thD34
Machine Learning - Classification Algorithms
Machine Learning - Classification Algorithms
resming1
Proposal for folders structure division in projects.pdf
Proposal for folders structure division in projects.pdf
Mohamed Ahmed
Mechanical Vibration_MIC 202_iit roorkee.pdf
Mechanical Vibration_MIC 202_iit roorkee.pdf
isahiliitr
Introduction to sensing and Week-1.pptx
Introduction to sensing and Week-1.pptx
KNaveenKumarECE
Industrial internet of things IOT Week-3.pptx
Industrial internet of things IOT Week-3.pptx
KNaveenKumarECE
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
60 Years and Beyond eBook 1234567891.pdf
60 Years and Beyond eBook 1234567891.pdf
waseemalazzeh
retina_biometrics ruet rajshahi bangdesh.pptx
retina_biometrics ruet rajshahi bangdesh.pptx
MdRakibulIslam697135
Introduction to Python Programming Language
Introduction to Python Programming Language
merlinjohnsy
Microwatt: Open Tiny Core, Big Possibilities
Microwatt: Open Tiny Core, Big Possibilities
IBM
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
Tesla-Stock-Analysis-and-Forecast.pptx (1).pptx
moonsony54
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
resming1
Unit III_One Dimensional Consolidation theory
Unit III_One Dimensional Consolidation theory
saravananr808639
Abraham Silberschatz-Operating System Concepts (9th,2012.12).pdf
Abraham Silberschatz-Operating System Concepts (9th,2012.12).pdf
Shabista Imam
Structural Wonderers_new and ancient.pptx
Structural Wonderers_new and ancient.pptx
nikopapa113
Learning Types of Machine Learning Supervised Learning Unsupervised UNI...
Learning Types of Machine Learning Supervised Learning Unsupervised UNI...
23Q95A6706
special_edition_using_visual_foxpro_6.pdf
special_edition_using_visual_foxpro_6.pdf
Shabista Imam
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
IPL_Logic_Flow.pdf Mainframe IPLMainframe IPL
KhadijaKhadijaAouadi
AI_Presentation (1). Artificial intelligence
AI_Presentation (1). Artificial intelligence
RoselynKaur8thD34
Machine Learning - Classification Algorithms
Machine Learning - Classification Algorithms
resming1
Proposal for folders structure division in projects.pdf
Proposal for folders structure division in projects.pdf
Mohamed Ahmed
Mechanical Vibration_MIC 202_iit roorkee.pdf
Mechanical Vibration_MIC 202_iit roorkee.pdf
isahiliitr
Introduction to sensing and Week-1.pptx
Introduction to sensing and Week-1.pptx
KNaveenKumarECE
Ad

Learning c programming by rbm