Monday, February 9, 2015

How to Take input from user in c

In this video i have taught how to take input from user and then add,multiply,divide,subtract from it,Also there are other tricks you can learn from to master c like how to use endl to change line in the out what will happen if we don't do this,also the advantage of clrscr other wise it can ruin your output and how the output looks like if clrscr is not used and what will happen if we use it 

Sunday, February 8, 2015

How to Add,subtract,multiply,divide in c

This Video will tell you how you can add,subtract,multiply,divide two random numbers in c programming.Also there are other tricks you can learn from to master c like how to use endl to change line in the out what will happen if we don't do this,also the advantage of clrscr other wise it can ruin your output and how the output looks like if clrscr is not used and what will happen if we use it
Here is the Video which can Help You in this Program

Data types in C

Data types in C:
  Data type specifies the type of data that can be stored in variable.


 Basic Data Types in C:
1.Integer

2.Float

3.Double

4.Character

Variable in C

Variable:
    A quantity whose value can be changed during the execution of a program.
  e.g
  int a;
  a=3;
  a=5;
  a=10;
  • During the execution 2 bytes are reserved for variable a
  • During execution memory location’s name remains same but data can be changed.  
Rules for writing variable name

Constants in C

Constants:

A quantity whose value cant be changed during the execution of a program.

  e.g

  10,5.5,’a’ etc 
 Four Types of Constants:
1. Integer Constant
2.Floating point constant 
3.Character constant 
4.String Constant

Header Files in C

Header File:          
1.Has definitions of built in library functions.
2.When a particular built-in library function is to be used , its header file must be included to the program.