SlideShare a Scribd company logo
1 of 10
WORKING WITH
INTERGRATED DEVELOPMENT ENVIRONMENT

             (IDE)
What is IDE??

Examples: Visual Studio(VB.NET,C#), Codeblock(C,C++),
Netbean(JAVA), Xcode(C#,JAVA,Phyton)

In this lab: DEVC++ for C

Provides to write, editing code
                                      Deliver into application that
A way to compile/debug the code       we use

Create and Test Your project

Some IDE not only write text but maybe it has embedded
with object, Translator, or prescript code
which may help the coding is done more easier
Example of IDE

Visual Studio
DEVC++
Fundamental of C

    Basically a a program C must have:

Main()

{

}


 Reserved keyword in C must be written as included in the compiler:
User cannot change its appearance!

Example int, float, goto, else, char,void, main….
Others are printf, scanf, and more..

  Variable name cannot be used as same as the reserved keyword
  C variable refers to the name given to the memory location to
store data
Rule to name a variable:
     Must start with alphabet, cant be start with number
     Can be written in lower and uppercase
     Cannot use reserved keyword in C
     Special character not allowed only (_)

Data Type:
 Data types          Format
                     string
 int                 %d
 Unsigned int        %u
 Float               %f
 Long                %ld
 Unsigned long       %lu
 double              %lf
 Long double         %lf
 char                %c /%s
 Unsigned char       %c/%s
Operators


Binary Operator
Operator           operation         Ex
+                  addition          x=5+6
-                  subtraction       x=10-5
*                  multiplication    x=5*4
/                  division          x=5/3 =1
%                  modulo operator   x=5%3 =2




Unary operators:
Operator           operation         Ex
++                 increment         i++
--                 decrement         i--
Relational Operator
Operator              operation                 Ex
>                     greater than              a>b
<                     less than                 a<b
>=                    greater than equal to     a<=b
<=                    less than equal to        a>=b
==                    equal to                  a= =b
!=                    not equal to              a!=b




Logical operators:
Operator              operation            Ex
&&                    AND                  (a>b)&&(a>c)
||                    OR                   (a>b)||(a>c)
Exercise: Identifying the Error!
 Purpose of the program: IF the grade is a, add 10 to the marks
             #include<stdio.h>

             void main()

             INT mark;
             char 1grade;

             scan(“%d %c”, &mark, & 1grade);

             if(grade = =’a’)

             {
             mark=mark-10;

             }
             printf(“%d”,mark);
             }
Purpose of the program: To find the rectangle area
     #include<stdio.h>


     {
     float a,b;
     void area_rectangle (float, float);
     clrscr();
     printf(“n enter the length & breadth:”);
     scanf(“%d %d”, &a, &b);
     area_rectangle (a,B);
     getch();
     }
     void area_rectangle(x,y)
     float x,y;
     {
     float area;
     area=x*y;
     Printf(“n area of rectangle is %f”, area);
     return;
     }

More Related Content

What's hot

What's hot (20)

C programming Lab 2
C programming Lab 2C programming Lab 2
C programming Lab 2
 
Programming fundamentals
Programming fundamentalsProgramming fundamentals
Programming fundamentals
 
Lab 6
Lab 6Lab 6
Lab 6
 
MFC Polygon
MFC PolygonMFC Polygon
MFC Polygon
 
C Programming Language Part 7
C Programming Language Part 7C Programming Language Part 7
C Programming Language Part 7
 
Lab 1
Lab 1Lab 1
Lab 1
 
C++ Question on References and Function Overloading
C++ Question on References and Function OverloadingC++ Question on References and Function Overloading
C++ Question on References and Function Overloading
 
Data Input and Output
Data Input and OutputData Input and Output
Data Input and Output
 
Input output statement in C
Input output statement in CInput output statement in C
Input output statement in C
 
C Programming Language Step by Step Part 5
C Programming Language Step by Step Part 5C Programming Language Step by Step Part 5
C Programming Language Step by Step Part 5
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
Introduction to Computer and Programing - Lecture 04
Introduction to Computer and Programing - Lecture 04Introduction to Computer and Programing - Lecture 04
Introduction to Computer and Programing - Lecture 04
 
print even or odd number in c
print even or odd number in cprint even or odd number in c
print even or odd number in c
 
C programming Lab 1
C programming Lab 1C programming Lab 1
C programming Lab 1
 
Expressions using operator in c
Expressions using operator in cExpressions using operator in c
Expressions using operator in c
 
7. input and output functions
7. input and output functions7. input and output functions
7. input and output functions
 
Decision making and branching
Decision making and branchingDecision making and branching
Decision making and branching
 
Programming in C [Module One]
Programming in C [Module One]Programming in C [Module One]
Programming in C [Module One]
 
ICP - Lecture 5
ICP - Lecture 5ICP - Lecture 5
ICP - Lecture 5
 
C Operators
C OperatorsC Operators
C Operators
 

Similar to IDE FOR C - LEARN DEVC

Fundamentals of computer programming by Dr. A. Charan Kumari
Fundamentals of computer programming by Dr. A. Charan KumariFundamentals of computer programming by Dr. A. Charan Kumari
Fundamentals of computer programming by Dr. A. Charan KumariTHE NORTHCAP UNIVERSITY
 
Operators-computer programming and utilzation
Operators-computer programming and utilzationOperators-computer programming and utilzation
Operators-computer programming and utilzationKaushal Patel
 
C Programming Introduction
C Programming IntroductionC Programming Introduction
C Programming IntroductionHoney Sharma
 
2 EPT 162 Lecture 2
2 EPT 162 Lecture 22 EPT 162 Lecture 2
2 EPT 162 Lecture 2Don Dooley
 
Learning C programming - from lynxbee.com
Learning C programming - from lynxbee.comLearning C programming - from lynxbee.com
Learning C programming - from lynxbee.comGreen Ecosystem
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programmingAlpana Gupta
 
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
 
Operators in C Programming
Operators in C ProgrammingOperators in C Programming
Operators in C Programmingprogramming9
 
C language operator
C language operatorC language operator
C language operatorcprogram
 
presentation_c_basics_1589366177_381682.pptx
presentation_c_basics_1589366177_381682.pptxpresentation_c_basics_1589366177_381682.pptx
presentation_c_basics_1589366177_381682.pptxKrishanPalSingh39
 
C language questions_answers_explanation
C language questions_answers_explanationC language questions_answers_explanation
C language questions_answers_explanationsrinath v
 
Programming in C Basics
Programming in C BasicsProgramming in C Basics
Programming in C BasicsBharat Kalia
 
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
 

Similar to IDE FOR C - LEARN DEVC (20)

Fundamentals of computer programming by Dr. A. Charan Kumari
Fundamentals of computer programming by Dr. A. Charan KumariFundamentals of computer programming by Dr. A. Charan Kumari
Fundamentals of computer programming by Dr. A. Charan Kumari
 
Operators-computer programming and utilzation
Operators-computer programming and utilzationOperators-computer programming and utilzation
Operators-computer programming and utilzation
 
C Programming Introduction
C Programming IntroductionC Programming Introduction
C Programming Introduction
 
2 EPT 162 Lecture 2
2 EPT 162 Lecture 22 EPT 162 Lecture 2
2 EPT 162 Lecture 2
 
C-PPT.pdf
C-PPT.pdfC-PPT.pdf
C-PPT.pdf
 
2. operator
2. operator2. operator
2. operator
 
Learning C programming - from lynxbee.com
Learning C programming - from lynxbee.comLearning C programming - from lynxbee.com
Learning C programming - from lynxbee.com
 
C fundamental
C fundamentalC fundamental
C fundamental
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
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
 
Operators in C Programming
Operators in C ProgrammingOperators in C Programming
Operators in C Programming
 
C language operator
C language operatorC language operator
C language operator
 
presentation_c_basics_1589366177_381682.pptx
presentation_c_basics_1589366177_381682.pptxpresentation_c_basics_1589366177_381682.pptx
presentation_c_basics_1589366177_381682.pptx
 
Basic of C Programming | 2022 Updated | By Shamsul H. Ansari
Basic of C Programming | 2022 Updated | By Shamsul H. AnsariBasic of C Programming | 2022 Updated | By Shamsul H. Ansari
Basic of C Programming | 2022 Updated | By Shamsul H. Ansari
 
C language questions_answers_explanation
C language questions_answers_explanationC language questions_answers_explanation
C language questions_answers_explanation
 
Unit i intro-operators
Unit   i intro-operatorsUnit   i intro-operators
Unit i intro-operators
 
Cbasic
CbasicCbasic
Cbasic
 
Programming in C Basics
Programming in C BasicsProgramming in C Basics
Programming in C Basics
 
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
 
Labsheet2
Labsheet2Labsheet2
Labsheet2
 

IDE FOR C - LEARN DEVC

  • 2. What is IDE?? Examples: Visual Studio(VB.NET,C#), Codeblock(C,C++), Netbean(JAVA), Xcode(C#,JAVA,Phyton) In this lab: DEVC++ for C Provides to write, editing code Deliver into application that A way to compile/debug the code we use Create and Test Your project Some IDE not only write text but maybe it has embedded with object, Translator, or prescript code which may help the coding is done more easier
  • 5. Fundamental of C Basically a a program C must have: Main() { } Reserved keyword in C must be written as included in the compiler: User cannot change its appearance! Example int, float, goto, else, char,void, main…. Others are printf, scanf, and more.. Variable name cannot be used as same as the reserved keyword C variable refers to the name given to the memory location to store data
  • 6. Rule to name a variable: Must start with alphabet, cant be start with number Can be written in lower and uppercase Cannot use reserved keyword in C Special character not allowed only (_) Data Type: Data types Format string int %d Unsigned int %u Float %f Long %ld Unsigned long %lu double %lf Long double %lf char %c /%s Unsigned char %c/%s
  • 7. Operators Binary Operator Operator operation Ex + addition x=5+6 - subtraction x=10-5 * multiplication x=5*4 / division x=5/3 =1 % modulo operator x=5%3 =2 Unary operators: Operator operation Ex ++ increment i++ -- decrement i--
  • 8. Relational Operator Operator operation Ex > greater than a>b < less than a<b >= greater than equal to a<=b <= less than equal to a>=b == equal to a= =b != not equal to a!=b Logical operators: Operator operation Ex && AND (a>b)&&(a>c) || OR (a>b)||(a>c)
  • 9. Exercise: Identifying the Error! Purpose of the program: IF the grade is a, add 10 to the marks #include<stdio.h> void main() INT mark; char 1grade; scan(“%d %c”, &mark, & 1grade); if(grade = =’a’) { mark=mark-10; } printf(“%d”,mark); }
  • 10. Purpose of the program: To find the rectangle area #include<stdio.h> { float a,b; void area_rectangle (float, float); clrscr(); printf(“n enter the length & breadth:”); scanf(“%d %d”, &a, &b); area_rectangle (a,B); getch(); } void area_rectangle(x,y) float x,y; { float area; area=x*y; Printf(“n area of rectangle is %f”, area); return; }