Enter your email address:

Delivered by FeedBurner

Sunday, December 12, 2010

What is Constant in C Language

 

A Constant is an entity that doesn’t change, whereas, a variable is an entity that may change.

 

In any program we typically do lots of calculation. The results of these calculation are stored in computer’s memory also consists of millions of cells. The calculated values are stored in memory cells. The values stored in each location may change the names given to these locations are called variables names.

 

Example:

Now “3” is stored in an memory location and a name x is given to it.

Then we have assigned a new value 5 to the same memory location x.

This would overwrite the earlier value 3, since a memory location can hold only value at a time.since the location whose name is x can hold different times x is known as a variable. As against this, 3 or 5 do not change, hence are known as constants.

4 comments:

  1. That is where the into play. Coach Purses There are authentic handbags that are being sold for extensive prices on certain sites. You can find great shameful discounted coach purses for retailing on live sale sites that tolerate you to bid on these bags for fractions of the retail prices. For the prices that you would see on the LV website or eluxury.com, you are receiving a bargain on authentic discounted coach pursesonline. Coach outlet

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...