In c, there are some keywords the usage of which is not very clearly defined (in textbooks). But they are an important part of the language. Here are some I could find ::
Volatile::
The keyword volatile is used to specify that the value of a variable can be changed explicitly by a program even in the same expression where no external or explicit change is made in the value of the variable by the program. This, explicit specification of volatility is important because c automatically assumes a variable on the right side of an expression to have a constant value, and refers to that value if future for the same statement.
Thus
d=a+b+c+a*a+d;
will have same values of ‘a’ throughout by default. This is an implicit optimization of all modern compilers. This can also overcome problems of changing compilers, which differ in evaluation rules for expressions.
This is very helpful for ports, which have values that can be changed by external conditions only.
Static ::
1. Static local variables ::
In this code, the initial value of ‘aa’ is retained each call. Thus we get the numbers from 0 to 9 as output, even though the declaration of ‘aa’ takes place along with the function.Code:#include<stdio.h> int ret() { static int aa; return aa++; } main() { int a; for(i=0;i<10;i++) { printf("%d ",ret()); } getch(); }
Know further here :: Keywords less used | TECHARRAZ
God is real... unless declared an integermy blog :: http://techarraz.com/
Excellent Read! +rep given.
Thanks Xav. My alexa rank is 2,383,611 for a 1 week average, and 11,771,264 for 3 months average, although my blog is up only around 10 days!
techarraz.com - Traffic Details from Alexa
God is real... unless declared an integermy blog :: http://techarraz.com/
That means you need only some slight amt. of management to get somewhere good!
God is real... unless declared an integermy blog :: http://techarraz.com/
What did you build your website for? Just to learn and write about yourself for family members? My first website was similar. I had a single HTML page just talking about Linux and myself. I was using Slackware 3.x at the time and I don't believe PHP had been invented (at least I hadn't heard of it).
Cmon Xav, with your knowledge of c#, you can do that anytime! I think you should start a coding site seriously! Or a blog maybe!
And good news is, My alexa rank for weekly average has moved into 1,469,171! Waiting to see the 3 months average! Will have to wait three months for that..
And i guess my thread is not the best place to discuss this. Can we start a new thread to discuss our websites?
God is real... unless declared an integermy blog :: http://techarraz.com/
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks