getch();
Sunday, April 27, 2008
Our First 'C' Program
getch();
Saturday, April 19, 2008
Skeleton of a 'C' Program
We will start with understanding the basic programming construct in 'C language'.
Sample Program:
#include
void main()
Point # 1:The most important thing in this program is "#include", these are called preprocessor directives in C language, it is denoted by # symbol. 'C' does not support dynamic linking, statis linking means everything which needs to be included becomes part of the executable file. So, when I wrote #include, there is a process called preprocessing which happens before compilation in 'C', it copies the content of the file specifed at the place of this statement, In our case the content of the file stdio.h will be placed in the place of #include
Ponit #2:
What is main() here, main is a function, a function is a small block of code which executes together. But why do we name it main?, we could have had 'small', 'big' etc. but why 'main', the answer is every function needs to be called for execution and because every application runs under the Operating System, OS is the one who starts the execution, but the OS is programmed to call only function named 'main', we can say 'main' function is the entry to the application. All other function written are called by main as and when required.
In the next post we would discuss about the standard input and output functions.
Saturday, April 12, 2008
Let’s Begin
7 Years ago when I decided to change and join IT industry, the first programming language I came across was C language. I was told by others that this would be my ultimate test of intelligence as they were finding it pretty difficult to cope with. Whatever I learnt till that point of time was kind of a walkover for me.
Then the day arrived when we were supposed to attend our first C language session, the session began and the first line from our tutor made it clear for me that how important it was to know C language to succeed in Software industry. He said, “This language is mother of all the High Level Languages that have existed and will be in the future as well.” Everyone knows how valid those comments were, all the languages which I have worked on till date, seem to have something from this language. C++, JAVA, VB 6.0, C#, pick anyone you like, you would feel as if it has got it roots in C.
We will start our first technical discussion from the next post.
Sunday, April 6, 2008
C language, no longer a mirage...
Hey people,
For the last 4 years I have been into IT industry and have met a lot of people across the globe. I have found one thing common in all of them, especially the beginners, they are scared of 'C' language or we can say that 'C' language is like mirage to them, the closer they get, more difficult they find it to understand.
My purpose of starting this blog is to create a network or a central place where we could share our knowledge on 'C', especially for those who are new to this industry and find it challenging to break the intial barrier.
I would be posting a lesson every day on this blog and you will also find some really usefull links to other sites.
I welcome you all,
Sankalp