Posts

Showing posts from March, 2019

Variables

Image
Variable DEFINITION: Variable is a value   or quantity which may   vary during   program execution is called   a Variable. Each variable has specific memory location in Memory Unit, where Numerical values or characters can be stored. We can also call a variable as an Identifier i.e., they identify the varying quantities and stores them in particular memory location. Example: Sum=a+b; In the above example there are “a” and “b” two Identifiers/variables representing two separate quantities in two distinct(different) memory locations. Similarly Sum is also an variable   name which used to store the sum of two numbers i.e.,(addition of a and b).                                                 MEMORY                                                   variable a variable  b variable  Sum               ↔↔↔↔↔↔ memory                           locations Rules for Naming Variables in C Ø   A variable name must consist o

Data types in C Programming

Image
Data types in C Language Hello Friends Welcome to my blog sstech today we will study about data types in C language,contents in this  blog is not fully expressed by me some of the topics are referenced by an Internet and other tutorials. Data types specify how we enter data into our programs and what type of data we enter. C language has some predefined set of data types to handle various kinds of data that we can use in our program. These datatypes have different storage capacities. C language supports 2 different type of data types: Primary data types: These are fundamental data types in C namely integer( int ), floating point( float ), character( char ) and  void . Derived data types: Derived data types are nothing but primary datatypes but a little twisted or grouped together like  array ,  stucture ,  union  and  pointer . These are discussed in details later. Data type determines the type of data a variable will hold. If a variable  x  is declared as  int . it