SAMIR UDDIN

Hello guys welcome to my web blog ,my very special blog gives you latest technical knowledges and I want to proviod you quality and short posts .If you need any type of posts please tell me in comment section,If anybody have some questions related to my posts please tell me at https://www.samirmd.blogspot.com https://www.youtube.com/channel/UC4k3h0R2H8HVSQqAbuYY27Q https://www.facebook.com/mdsamir.shaikh.948

Latest Tweets

LightBlog
Responsive Ads Here

Friday, August 4, 2017

Variable And Constant in Computer Programming

Variable & Constant

Variable
§A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C has a specific  data type, which determines the size of the variable's memory.
§A variable is an entity that does change.
 Numeric VariableàUsed to stores either integer values or character  values. 
 Character Variableà Used to stores Alphabet or ASCII values.
§A variable cannot be type void.  
  int a    10
*Here int is a data type of variable a whose constant value is 10       
Constant   
§A constant is an identifier   whose value doesn't change during execution of program. 
§Numeric Integer
§IntegeràSequence of digits            //23 , 102 , 154 etc…
§Real    Ã A floating point type or fractional values.     // 3.7 , 6.45 , 34.65 etc… 
Character Integer 
§Singleà     ‘a’  ‘d’  ‘g’  ‘C’ etc….
§Stringà     “samir”   “Uddin”  
§Declaring Constant
§Count float pi=3.14                       
               C Programming Made Easy                                                                                                              


  

No comments:

Post a Comment