APSC 160 Chapter Notes - Chapter 3.3: In C

61 views2 pages
31 Aug 2016
School
Department
Course

Document Summary

A variable is a container which holds any value. So, it is like a box that contains something which occupies space in memory. It can have any name just like a label on the box. In c language, variable is declared as : var x. Generally, naming rule in c suggests that we should give useful names to variables such as: if name of person is to be stored then we can use : var name, var salary, var gender , var age. In simple terms, we can read it following: variable x has value of 3 or it holds a value 3. Every variable has a datatype that what kind of data it can hold whether it has name stored in it, a number stored in it or any other data. There are various datatypes in c that a variable can possess.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents