<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3060842794449575462</id><updated>2024-10-05T00:05:11.028-07:00</updated><title type='text'>C\C++</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://programeansic.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>52</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-6020292903935610830</id><published>2012-02-25T21:27:00.001-08:00</published><updated>2013-09-14T22:40:52.253-07:00</updated><title type='text'>The Case Control Structure</title><content type='html'>In real life we are often faced with situations where we are required to make a choice between a number of alternatives rather than only one or two. For example, which school to join or which hotel to visit or still harder which girl to marry (you almost always end up making a wrong decision is a different matter altogether!). Serious C programming is same; the choice we are asked to make is more complicated than merely selecting between two alternatives. C provides a special control statement that allows us to handle such cases effectively; rather than using a series of if statements. This control instruction is in fact the topic of this chapter. Towards the end of the chapter we would also study a keyword called goto, and understand why we should avoid its usage in C programming.&lt;br /&gt;
&lt;br /&gt;
Decisions Using switch&lt;br /&gt;
The control statement that allows us to make a decision from the number of choices is called a switch, or more correctly a switch-case-default, since these three keywords go together to make up the control statement. They most often appear as follows:&lt;br /&gt;
&lt;br /&gt;
switch ( integer expression )&lt;br /&gt;
{&lt;br /&gt;
case constant 1 :&lt;br /&gt;
do this ;&lt;br /&gt;
case constant 2 :&lt;br /&gt;
do this ;&lt;br /&gt;
case constant 3 :&lt;br /&gt;
do this ;&lt;br /&gt;
default :&lt;br /&gt;
do this ;&lt;br /&gt;
}&lt;br /&gt;
The integer expression following the keyword switch is any C expression that will yield an integer value. It could be an integer constant like 1, 2 or 3, or an expression that evaluates to aninteger. The keyword case is followed by an integer or a character constant. Each constant in each case must be different from all the others. The “do this” lines in the above form of switch represent any valid C statement.&lt;br /&gt;
What happens when we run a program containing a switch? First, the integer expression following the keyword switch is evaluated. The value it gives is then matched, one by one, against the constant values that follow the case statements. When a match is found, the program executes the statements following that case, and all subsequent case and default statements as well. If no match is found with any of the case statements, only the statements following the default are executed. A few examples will show how this control structure works.&lt;br /&gt;
Consider the following program:&lt;br /&gt;
&lt;br /&gt;
main( )&lt;br /&gt;
{&lt;br /&gt;
int i = 2 ;&lt;br /&gt;
switch ( i )&lt;br /&gt;
{&lt;br /&gt;
case 1 :&lt;br /&gt;
printf ( &quot;I am in case 1 \n&quot; ) ;&lt;br /&gt;
case 2 :&lt;br /&gt;
printf ( &quot;I am in case 2 \n&quot; ) ;&lt;br /&gt;
case 3 :&lt;br /&gt;
printf ( &quot;I am in case 3 \n&quot; ) ;&lt;br /&gt;
default :&lt;br /&gt;
printf ( &quot;I am in default \n&quot; ) ;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;The output of this program would be:&lt;br /&gt;
I am in case 2&lt;br /&gt;
I am in case 3&lt;br /&gt;
I am in default&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
The output is definitely not what we expected! We didn’t expect the second and third line in the above output. The program prints case 2 and 3 and the default case. Well, yes. We said the switch executes the case where a match is found and all the subsequent cases and the default as well.&lt;br /&gt;
If you want that only case 2 should get executed, it is upto you to get out of the switch then and there by using a break statement. The following example shows how this is done. Note that there is no need for a break statement after the default, since the control comes out of the switch anyway.&lt;br /&gt;
main( )&lt;br /&gt;
{&lt;br /&gt;
int i = 2 ;&lt;br /&gt;
switch ( i )&lt;br /&gt;
{&lt;br /&gt;
case 1 :&lt;br /&gt;
printf ( &quot;I am in case 1 \n&quot; ) ;&lt;br /&gt;
break ;&lt;br /&gt;
case 2 :&lt;br /&gt;
printf ( &quot;I am in case 2 \n&quot; ) ;&lt;br /&gt;
break ;&lt;br /&gt;
case 3 :&lt;br /&gt;
printf ( &quot;I am in case 3 \n&quot; ) ;&lt;br /&gt;
break ;&lt;br /&gt;
default :&lt;br /&gt;
printf ( &quot;I am in default \n&quot; ) ;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;b&gt;The output of this program would be:&lt;br /&gt;
I am in case 2&lt;/b&gt;



</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/6020292903935610830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/6020292903935610830'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2012/02/case-control-structure.html' title='The Case Control Structure'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-8262676952196289796</id><published>2011-03-25T05:57:00.001-07:00</published><updated>2011-03-25T05:57:33.694-07:00</updated><title type='text'>Lesson 3: Variables and Data Types</title><content type='html'>During programming we need to store data. This data is stored in variables. Variables are locations in memory for storing data. The memory is divided into blocks. It can be viewed as pigeon-holes. You can also think of it as PO Boxes. In post offices there are different boxes and each has an address. Similarly in memory, there is a numerical address for each location of memory (block). It is difficult for us to handle these numerical addresses in our programs. So we give a name to these locations. These names are variables. We call them variables because they can contain different values at different times. &lt;br /&gt;
The variable names in C may be started with a character or an underscore ( _ ). But avoid starting a name with underscore ( _ ). C has many libraries which contain variables and function names normally starting with underscore ( _ ). So your variable name starting with underscore ( _ ) may conflict with these variables or function names.&lt;br /&gt;
&lt;br /&gt;
In a program every variable has&lt;br /&gt;
o Name&lt;br /&gt;
o Type&lt;br /&gt;
o Size&lt;br /&gt;
o Value&lt;br /&gt;
&lt;br /&gt;
The variables having a name, type and size (type and size will be discussed later) are just empty boxes. They are useless until we put some value in them. To put some value in these boxes is known as assigning values to variables. In C language, we use assignment operator for this purpose.&lt;br /&gt;
In C language equal-to-sign (=) is used as assignment operator. Do not confuse the algebraic equal-to with the assignment operator. In Algebra X = 2 means the value of X is 2, whereas in C language X = 2 (where X is a variable name) means take the value 2 and put it in the memory location labeled as X, afterwards you can assign some other value to X, for example you can write X = 10, that means now the memory location X contains the value 10 and the previous value 2 is no more there. &lt;br /&gt;
&lt;br /&gt;
Data Types&lt;br /&gt;
A variable must have a data type associated with it, for example it can have data types like integer, decimal numbers, characters etc. The variable of type Integer stores integer values and a character type variable stores character value. The primary difference between various data types is their size in memory. Different data types have different sizes in memory depending on the machine and compilers. There are very few data types in C language. These data types are reserved words of C language. The reserve words can not be used as a variable name. Let’s take a look into different data types that the C language provides us to deal with whole numbers, real numbers and character data.&lt;br /&gt;
&lt;br /&gt;
Whole Numbers&lt;br /&gt;
The C language provides three data types to handle whole numbers.&lt;br /&gt;
o int&lt;br /&gt;
o short&lt;br /&gt;
o long&lt;br /&gt;
&lt;br /&gt;
The data type int is used to store whole numbers (integers). The integer type has a space of 4 bytes (32 bits for windows operating system) in memory. And it is mentioned as ‘int’ which is a reserved word of C, so we can not use it as a variable name. In programming before using any variable name we have to declare that variable with its data type. If we are using an integer variable named as ‘i’, we have to declare it as &lt;br /&gt;
&lt;br /&gt;
int i ;&lt;br /&gt;
&lt;br /&gt;
The above line is known as declaration statement. The declaration statement int i ; reserves 4 bytes of memory and labels it as ‘i’. This happens at the execution time. &lt;br /&gt;
&lt;br /&gt;
We noted that the integer occupies four bytes in memory. So if we have to store a small integer like 5, 10 or 20, C provides another data type for storing small whole numbers which is called short. The size of short is two bytes and it can store numbers in range of -32768 to 32767. So if we are going to use a variable for which we know that it will not increase from 32767, for example the age of different people, then we use the data type short for age. &lt;br /&gt;
&lt;br /&gt;
short age = 5;&lt;br /&gt;
&lt;br /&gt;
On the other side if we have a very large whole number that cannot be stored in an int then we use the data type long provided by C. So when we are going to deal with very big whole numbers in our program, we use long data type. We use it in program as:&lt;br /&gt;
&lt;br /&gt;
long x = 300500200;&lt;br /&gt;
&lt;br /&gt;
Real Numbers&lt;br /&gt;
The C language provides two data types to deal with real numbers (numbers with decimal points e.g. 1.35, 735.251). The real numbers are also known as floating point numbers.&lt;br /&gt;
o float&lt;br /&gt;
o double&lt;br /&gt;
&lt;br /&gt;
To store real numbers, float data type is used. The float data type uses four bytes to store&lt;br /&gt;
a real number. Here is program that uses float data types.&lt;br /&gt;
&lt;br /&gt;
float f = 325.32501 &lt;br /&gt;
&lt;br /&gt;
If we need to store a large real number which cannot be store in four bytes, then we use double data type. Normally the size of double is twice the size of float. In program we use it as:&lt;br /&gt;
double x = 345624.769123;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
char Data Type&lt;br /&gt;
So far we have been looking on data types to store numbers, In programming we do need to store characters like a,b,c etc. For storing the character data C language provides char data type. By using char data type we can store characters in variables. While assigning a character value to a char type variable single quotes are used around the character as ‘a’.&lt;br /&gt;
&lt;br /&gt;
/* This program uses short data type to store values */&lt;br /&gt;
#include &lt;iostream.h&gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
char x;&lt;br /&gt;
x = ’a’;&lt;br /&gt;
cout &lt;&lt; “The character value in x = “;&lt;br /&gt;
cout &lt;&lt; x;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Arithmetic Operators&lt;br /&gt;
In C language we have the usual arithmetic operators for addition, subtraction, multiplication and division. C also provides a special arithmetic operator which is called modulus. All these operators are binary operators which means they operate on two operands. So we need two values for addition, subtraction, multiplication, division and modulus.&lt;br /&gt;
Addition + &lt;br /&gt;
Subtraction - &lt;br /&gt;
Multiplication * &lt;br /&gt;
Division / &lt;br /&gt;
Modulus % &lt;br /&gt;
&lt;br /&gt;
There is one thing to note in division that when we use integer division (i.e. both operands are integers) yields an integer result. This means that if, for example, you are dividing 5 by 2 (5 / 2) it will give integer result as 2 instead of actual result 2.5. Thus in integer division the result is truncated to the whole number, the fractional part (after decimal) is ignored. If we want to get the correct result, then we should use float data type. The modulus operator returns the remainder after division. This operator can only be used with integer operands. The expression x % y returns the remainder after x is divided by y. For example, the result of 5 % 2 will be 1, 23 % 5 will be 3 and 107%10 will be 7.&lt;br /&gt;
&lt;br /&gt;
Precedence of Operators&lt;br /&gt;
The arithmetic operators in an expression are evaluated according to their precedence. The precedence means which operator will be evaluated first and which will be evaluated after that and so on. In an expression, the parentheses ( ) are used to force the evaluation order. The operators in the parentheses ( ) are evaluated first. If there are nested parentheses then the inner most is evaluated first. The expressions are always evaluated from left to right. The operators *, / and % have the highest precedence after parentheses. These operators are evaluated before + and –&lt;br /&gt;
operators. Thus + and – operators has the lowest precedence. It means that if there are * and + operators in an expression then first the * will be evaluated and then its result will be added to other operand. If there are * and / operators in an expression (both have the same precedence) then the operator which occurs first from left will be evaluated first and then the next, except you force any operator to evaluate by putting parentheses around it.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/8262676952196289796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/8262676952196289796'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2011/03/lesson-3-variables-and-data-types.html' title='Lesson 3: Variables and Data Types'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-4325383220806482653</id><published>2011-03-12T21:19:00.001-08:00</published><updated>2011-03-12T21:19:53.731-08:00</updated><title type='text'>Lesson 2: First C Program</title><content type='html'>The best way to learn C is to start coding right away. So here is our very first program in C. &lt;br /&gt;
# include &lt;iostream.h&gt;&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
cout &lt;&lt; &quot;HELLO WORLD!&quot;;
}

Let&#39;s see what the above snippet of code means.

# include
#include is a pre-processor directive. It is not part of our program; it is an instruction to the compiler. It tells the C compiler to include the contents of a file, in this case the system file iostream.h. The compiler knows that it is a system file, and therefore looks for it in a special place. The features of preprocessor will be discussed later. For the time being take this line on faith. You have to write this line. The sign # is known as HASH and also called SHARP. 

&lt;iostream.h&gt;&lt;br /&gt;
&lt;iostream.h&gt; is the name of the library definition file for all Input Output Streams. Your program will almost certainly want to send stuff to the screen and read things from the keyboard. iostream.h is the name of the file which has the code to do that work for you.&lt;br /&gt;
&lt;br /&gt;
main()&lt;br /&gt;
The name main is special, in that the main is actually the one which is run when your program is used. A C program is made up of a large number of functions. Each of these is given a name by the programmer and they refer to each other as the program runs. C regards the name &quot;main&quot; as a special case and will run this function first. If you forget to have a main function, or mistype the name, the compiler will give you an error.&lt;br /&gt;
&lt;br /&gt;
Notice that there are parentheses (“( )”, normal brackets) with main. Here the parentheses contain nothing. There may be something written inside the parentheses. It will be discussed in later lectures. &lt;br /&gt;
&lt;br /&gt;
{}&lt;br /&gt;
Next, there is a curly bracket also called braces(&quot;{ }&quot;). For every open brace there must be a matching close. Braces allows to group together pieces of a program. The body of main is enclosed in braces. Braces are very important in C; they enclose the blocks of the program. &lt;br /&gt;
&lt;br /&gt;
cout&lt;br /&gt;
cout is known as out put stream in C and C++. Stream is a complicated thing, you will learn about it later. Think of a stream as a door. The data is transferred through stream, cout takes data from computer and sends it to the output. For the moment it is a screen of the monitor. hence we use cout for output. &lt;br /&gt;
&lt;br /&gt;
&lt;&lt;&lt;br /&gt;
The sign &lt;&lt; indicates the direction of data. Here it is towards cout and the function of cout is to show data on the screen. &lt;br /&gt;
&lt;br /&gt;
“HELLO WORLD!” &lt;br /&gt;
The thing between the double quotes (“ ”) is known as character string. In C programming character strings are written in double quotes. Whatever is written after &lt;&lt; and within quotation marks will be direct it to cout, cout will display it on the screen. &lt;br /&gt;
&lt;br /&gt;
The semicolon (;) at the end of the above statement is very important. All C statements end with a semicolon (;). Missing of a semicolon (;) at the end of statement is a syntax error and compiler will report an error during compilation. If there is only a semicolon (;) on a line than it will be called a null statement. i.e. it does nothing. The extra semicolons may be put at the end but are useless and aimless</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/4325383220806482653'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/4325383220806482653'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2011/03/lesson-2-first-c-program.html' title='Lesson 2: First C Program'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-7883593526376561665</id><published>2011-03-12T21:14:00.001-08:00</published><updated>2011-03-12T21:14:11.012-08:00</updated><title type='text'>What is Programming?</title><content type='html'>Formally: &quot;A program is a precise sequence of steps to solve a particular problem.&quot; &lt;br /&gt;
At its most basic level, programming a computer simply means telling it what to do. Without these instructions or programs computers are merely dumb machines. Computers are incredibly stupid. They do exactly what we tell them to do: no more, no less-- unlike human beings. Computers can&#39;t think by themselves. In this sense, they differ from human beings. For example, if someone asks you, “What is the time?”, “Time please?” or just, “Time?” you understand anyway that he is asking the time but computer is different. Instructions to the computer should be explicitly stated. Computer will tell you the time only if you ask it in the way you have programmed it. When you&#39;re programming, it helps to be able to &quot;think&#39;&#39; as stupidly as the computer does, so that you are in the right frame of mind for specifying everything in minute detail, and not assuming that the right thing will happen by itself.&lt;br /&gt;
&lt;br /&gt;
The Receipe of a good Program: &lt;br /&gt;
In order to design a program effectively and properly we must have a recipe to follow. In the book name ‘How to design programs’ by Matthias Felleisen and the co-worker, the idea of design recipe has been stated very elegenlty as “Learning to design programs is like learning to play soccer. A player must learn to trap a ball, to dribble with a ball, to pass, and to shoot a ball. Once the player knows those basic skills, the next goals are to learn to play a position, to play certain strategies, to choose among feasible strategies, and, on occasion, to create variations of a strategy because none fits.“ The author then continues to say that: “A programmer is also very much like an architect, a composers, or a writer. They are creative people who start with ideas in their heads and blank pieces of paper. They conceive of an idea, form a mental outline, and refine it on paper until their writings reflect their mental image as much as possible. As they bring their ideas to paper, they employ basic drawing, writing, and playing music to express certain style elements of a building, to describe a person&#39;s character, or to formulate portions of a melody. They can practice their trade because they have honed their basic skills for a long time and can use them on an instinctive level. Programmers also form outlines, translate them into first designs, and iteratively refine them until they truly match the initial idea. Indeed, the best programmers edit and rewrite their programs many times until they meet certain aesthetic standards. And just like soccer players, architects, composers, or writers, programmers must practice the basic skills of their trade for a long time before they can be truly creative. Design recipes are the equivalent of soccer ball handling techniques, writing techniques, arrangements, and drawing skills. “ Hence to design a program properly, we must: &lt;br /&gt;
&lt;br /&gt;
o Analyze a problem statement, typically expressed as a word problem. &lt;br /&gt;
o Express its essence, abstractly and with examples. &lt;br /&gt;
o Formulate statements and comments in a precise language. &lt;br /&gt;
o Evaluate and revise the activities in light of checks and tests and&lt;br /&gt;
o Pay attention to detail.&lt;br /&gt;
&lt;br /&gt;
All of these are activities are very useful for a programmer.&lt;br /&gt;
&lt;br /&gt;
The above details are provided just for the sake of completeness and do not worry if the above sounds greek to you. it is natural. If, after going half of the course, you come back here then you will be in a perfect position to understand all of this. We have kept this boring detail to a limit. There were other topics like types of softwares, system software, application software, device drivers and the dry background of C programming language, which we have not included in this tutorial / guide. Our focus in this tutorial / guide is on programming C / C++.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/7883593526376561665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/7883593526376561665'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2011/03/what-is-programming.html' title='What is Programming?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-1150391877276105527</id><published>2010-03-23T06:22:00.001-07:00</published><updated>2010-03-23T06:22:49.259-07:00</updated><title type='text'>Forms of if</title><content type='html'>The if statement can take any of the following forms:&lt;br /&gt;
(a) if ( condition )&lt;br /&gt;
do this ;&lt;br /&gt;
(b) if ( condition )&lt;br /&gt;
{&lt;br /&gt;
do this ;&lt;br /&gt;
and this ;&lt;br /&gt;
}&lt;br /&gt;
(c) if ( condition )&lt;br /&gt;
do this ;&lt;br /&gt;
else&lt;br /&gt;
do this ;&lt;br /&gt;
(d) if ( condition )&lt;br /&gt;
{&lt;br /&gt;
do this ;&lt;br /&gt;
and this ;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
do this ;&lt;br /&gt;
and this ;&lt;br /&gt;
}&lt;br /&gt;
(e) if ( condition )&lt;br /&gt;
do this ;&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
if ( condition )&lt;br /&gt;
do this ;&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
do this ;&lt;br /&gt;
and this ;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
(f) if ( condition )&lt;br /&gt;
{&lt;br /&gt;
if ( condition )&lt;br /&gt;
do this ;&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
do this ;&lt;br /&gt;
and this ;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
do this ;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/1150391877276105527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/1150391877276105527'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/forms-of-if.html' title='Forms of if'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-7996163781310611377</id><published>2010-03-23T06:21:00.001-07:00</published><updated>2010-03-23T06:21:37.095-07:00</updated><title type='text'>Nested if-elses</title><content type='html'>It is perfectly all right if we write an entire if-else construct within either the body of the if statement or the body of an else statement. This is called ‘nesting’of ifs. This is shown in the following program.&lt;br /&gt;
/* A quick demo of nested if-else */&lt;br /&gt;
main( )&lt;br /&gt;
{&lt;br /&gt;
int i ;&lt;br /&gt;
printf ( &quot;Enter either 1 or 2 &quot; ) ;&lt;br /&gt;
scanf ( &quot;%d&quot;, &amp;i ) ;&lt;br /&gt;
if ( i == 1 )&lt;br /&gt;
printf ( &quot;You would go to heaven !&quot; ) ;&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
if ( i == 2 )&lt;br /&gt;
printf ( &quot;Hell was created with you in mind&quot; ) ;&lt;br /&gt;
else&lt;br /&gt;
printf ( &quot;How about mother earth !&quot; ) ;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Note that the second if-else construct is nested in the first else statement. If the condition in the first if statement is false, then the condition in the second if statement is checked. If it is false as well, then the final else statement is executed.&lt;br /&gt;
You can see in the program how each time a if-else construct is nested within another if-else construct, it is also indented to add clarity to the program. Inculcate this habit of indentation, otherwise you would end up writing programs which nobody (you included) can understand easily at a later date.&lt;br /&gt;
In the above program an if-else occurs within the else block of the first if statement. Similarly, in some other program an if-else may occur in the if block as well. There is no limit on how deeply the ifs and the elses can be nested.&lt;br /&gt;
&lt;hr&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/7996163781310611377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/7996163781310611377'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/nested-if-elses.html' title='Nested if-elses'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-8924011927815686088</id><published>2010-03-23T06:20:00.000-07:00</published><updated>2010-03-23T06:20:12.372-07:00</updated><title type='text'>The if-else Statement</title><content type='html'>The if statement by itself will execute a single statement, or a group of statements, when the expression following if evaluates to true. It does nothing when the expression evaluates to false. Can we execute one group of statements if the expression evaluates to true and another group of statements if the expression evaluates to false? Of course! This is what is the purpose of the else statement that is demonstrated in the following example:&lt;br /&gt;
Example : In a company an employee is paid as under:&lt;br /&gt;
If his basic salary is less than Rs. 1500, then HRA = 10% of basic salary and DA = 90% of basic salary. If his salary is either equal to or above Rs. 1500, then HRA = Rs. 500 and DA = 98% of basic salary. If the employee&#39;s salary is input through the keyboard write a program to find his gross salary.&lt;br /&gt;
/* Calculation of gross salary */&lt;br /&gt;
main( )&lt;br /&gt;
{&lt;br /&gt;
float bs, gs, da, hra ;&lt;br /&gt;
printf ( &quot;Enter basic salary &quot; ) ;&lt;br /&gt;
scanf ( &quot;%f&quot;, &amp;bs ) ;&lt;br /&gt;
if ( bs &lt; 1500 )&lt;br /&gt;
{&lt;br /&gt;
hra = bs * 10 / 100 ;&lt;br /&gt;
da = bs * 90 / 100 ;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
hra = 500 ;&lt;br /&gt;
da = bs * 98 / 100 ;&lt;br /&gt;
}&lt;br /&gt;
gs = bs + hra + da ;&lt;br /&gt;
printf ( &quot;gross salary = Rs. %f&quot;, gs ) ;&lt;br /&gt;
}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/8924011927815686088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/8924011927815686088'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/if-else-statement.html' title='The if-else Statement'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-8917424595238859983</id><published>2010-03-23T06:19:00.001-07:00</published><updated>2010-03-23T06:19:10.978-07:00</updated><title type='text'>The Real Thing</title><content type='html'>We mentioned earlier that the general form of the if statement is as follows&lt;br /&gt;
if ( condition )&lt;br /&gt;
statement ;&lt;br /&gt;
Truly speaking the general form is as follows:&lt;br /&gt;
if ( expression )&lt;br /&gt;
statement ;&lt;br /&gt;
Here the expression can be any valid expression including a relational expression. We can even use arithmetic expressions in the if statement. For example all the following if statements are valid&lt;br /&gt;
if ( 3 + 2 % 5 )&lt;br /&gt;
printf ( &quot;This works&quot; ) ;&lt;br /&gt;
if ( a = 10 )&lt;br /&gt;
printf ( &quot;Even this works&quot; ) ;&lt;br /&gt;
if ( -5 )&lt;br /&gt;
printf ( &quot;Surprisingly even this works&quot; ) ;&lt;br /&gt;
Note that in C a non-zero value is considered to be true, whereas a 0 is considered to be false. In the first if, the expression evaluates to 5 and since 5 is non-zero it is considered to be true. Hence the printf( ) gets executed.&lt;br /&gt;
In the second if, 10 gets assigned to a so the if is now reduced to if ( a ) or if ( 10 ). Since 10 is non-zero, it is true hence again printf( ) goes to work.&lt;br /&gt;
In the third if, -5 is a non-zero number, hence true. So again printf( ) goes to work. In place of -5 even if a float like 3.14 were used it would be considered to be true. So the issue is not whether the number is integer or float, or whether it is positive or negative. Issue is whether it is zero or non-zero.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/8917424595238859983'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/8917424595238859983'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/real-thing.html' title='The Real Thing'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-5421752449618405267</id><published>2010-03-23T06:18:00.001-07:00</published><updated>2010-03-23T06:18:14.754-07:00</updated><title type='text'>The if Statement</title><content type='html'>Like most languages, C uses the keyword if to implement the decision control instruction. The general form of if statement looks like this:&lt;br /&gt;
if ( this condition is true )&lt;br /&gt;
execute this statement ;&lt;br /&gt;
The keyword if tells the compiler that what follows is a decision control instruction. The condition following the keyword if is always enclosed within a pair of parentheses. If the condition, whatever it is, is true, then the statement is executed. If the condition is not true then the statement is not executed; instead the program skips past it. But how do we express the condition itself in C? And how do we evaluate its truth or falsity? As a general rule, we express a condition using C’s ‘relational’ operators. The relational operators allow us to compare two values to see whether they are equal to each other, unequal, or whether one is greater than the other. Here’s how they look and how they are evaluated in C.&lt;br /&gt;
thisThe relational operators should be familiar to you except for the equality operator == and the inequality operator !=. Note that = is used for assignment, whereas, == is used for comparison of two quantities. Here is a simple program, which demonstrates the use of if and the relational operators.&lt;br /&gt;
/* Demonstration of if statement */&lt;br /&gt;
main( )&lt;br /&gt;
{&lt;br /&gt;
int num ;&lt;br /&gt;
printf ( &quot;Enter a number less than 10 &quot; ) ;&lt;br /&gt;
scanf ( &quot;%d&quot;, &amp;num ) ;&lt;br /&gt;
if ( num &lt;= 10 )&lt;br /&gt;
printf ( &quot;What an obedient servant you are !&quot; ) ;&lt;br /&gt;
}&lt;br /&gt;
On execution of this program, if you type a number less than or equal to 10, you get a message on the screen through printf( ). If you type some other number the program doesn’t do anything. The following flowchart would help you understand the flow of control in the program.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/5421752449618405267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/5421752449618405267'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/if-statement.html' title='The if Statement'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-5624548155546083437</id><published>2010-03-13T03:51:00.001-08:00</published><updated>2010-03-13T03:52:17.441-08:00</updated><title type='text'>Write a programe to Calculation of simple interest in c language</title><content type='html'>#include&lt; stdio.h &gt;&lt;br /&gt;
#include&lt; conio.h &gt;&lt;br /&gt;
&lt;br /&gt;
void main( )&lt;br /&gt;
{&lt;br /&gt;
int   p, n ;&lt;br /&gt;
float   r, si ;&lt;br /&gt;
printf ( &quot;Enter values of p, n, r&quot; ) ;&lt;br /&gt;
scanf ( &quot;%d %d %f&quot;, &amp;p, &amp;n, &amp;r ) ;&lt;br /&gt;
&lt;br /&gt;
si = p * n * r / 100 ;&lt;br /&gt;
printf ( &quot;%f&quot; , si ) ;&lt;br /&gt;
getch();&lt;br /&gt;
}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/5624548155546083437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/5624548155546083437'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/write-programe-to-calculation-of-simple.html' title='Write a programe to Calculation of simple interest in c language'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-390676516921683669</id><published>2010-03-12T22:21:00.000-08:00</published><updated>2010-03-12T22:24:05.097-08:00</updated><title type='text'>The First C Program</title><content type='html'>Armed with the knowledge about the types of variables, constants &amp; keywords the next logical step is to combine them to form instructions. However, instead of this, we would write our first C program now. Once we have done that we would see in detail the instructions that it made use of.&lt;br /&gt;
Before we begin with our first C program do remember the following rules that are applicable to all C programs:&lt;br /&gt;
&lt;br /&gt;
Each instruction in a C program is written as a separate statement. Therefore a complete C program would comprise of a series of statements.&lt;br /&gt;
&lt;br /&gt;
The statements in a program must appear in the same order in which we wish them to be executed; unless of course the logic of the problem demands a deliberate ‘jump’ or transfer of control to a statement, which is out of sequence.&lt;br /&gt;
&lt;br /&gt;
Blank spaces may be inserted between two words to improve the readability of the statement. However, no blank spaces are allowed within a variable, constant or keyword.&lt;br /&gt;
&lt;br /&gt;
All statements are entered in small case letters.&lt;br /&gt;
C has no specific rules for the position at which a statement is to be written. That’s why it is often called a free-form language.&lt;br /&gt;
&lt;br /&gt;
Every C statement must end with a ;. Thus ; acts as a statement terminator.&lt;br /&gt;
Let us now write down our first C program. It would simply calculate simple interest for a set of values representing principle, number of years and rate of interest.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/* Calculation of simple interest */&lt;br /&gt;
/* Author gekay Date: 25/05/2004 */&lt;br /&gt;
main( )&lt;br /&gt;
{&lt;br /&gt;
int p, n ;&lt;br /&gt;
float r, si ;&lt;br /&gt;
p = 1000 ;&lt;br /&gt;
n = 3 ;&lt;br /&gt;
r = 8.5 ;&lt;br /&gt;
/* formula for simple interest */&lt;br /&gt;
si = p * n * r / 100 ;&lt;br /&gt;
printf ( &quot;%f&quot; , si ) ;&lt;br /&gt;
}&lt;br /&gt;
Now a few useful tips about the program...&lt;br /&gt;
&lt;br /&gt;
− Comment about the program should be enclosed within /* */. For example, the first two statements in our program are comments.&lt;br /&gt;
&lt;br /&gt;
− Though comments are not necessary, it is a good practice to begin a program with a comment indicating the purpose of the program, its author and the date on which the program was written.&lt;br /&gt;
&lt;br /&gt;
− Any number of comments can be written at any place in the program. For example, a comment can be written before the statement, after the statement or within the statement as shown below:&lt;br /&gt;
/* formula */ si = p * n * r / 100 ;&lt;br /&gt;
si = p * n * r / 100 ; /* formula */&lt;br /&gt;
si = p * n * r / /* formula */ 100 ;&lt;br /&gt;
&lt;br /&gt;
− Sometimes it is not so obvious as to what a particular statement in a program accomplishes. At such times it is worthwhile mentioning the purpose of the statement (or a set of statements) using a comment. For example:&lt;br /&gt;
/* formula for simple interest */&lt;br /&gt;
si = p * n * r / 100 ;&lt;br /&gt;
&lt;br /&gt;
− Often programmers seem to ignore writing of comments. But when a team is building big software well commented code is almost essential for other team members to understand it.&lt;br /&gt;
&lt;br /&gt;
− Although a lot of comments are probably not necessary in this program, it is usually the case that programmers tend to use too few comments rather than too many. An adequate number of comments can save hours of misery and suffering when you later try to figure out what the program does.&lt;br /&gt;
&lt;br /&gt;
− The normal language rules do not apply to text written within /* .. */. Thus we can type this text in small case, capital or a combination. This is because the comments are solely given for the understanding of the programmer or the fellow programmers and are completely ignored by the compiler.&lt;br /&gt;
&lt;br /&gt;
− Comments cannot be nested. For example,&lt;br /&gt;
/* Cal of SI /* Author sam date 01/01/2002 */ */&lt;br /&gt;
is invalid.&lt;br /&gt;
&lt;br /&gt;
− A comment can be split over more than one line, as in,&lt;br /&gt;
/* This is&lt;br /&gt;
a jazzy&lt;br /&gt;
comment */&lt;br /&gt;
Such a comment is often called a multi-line comment.&lt;br /&gt;
&lt;br /&gt;
− main( ) is a collective name given to a set of statements. This name has to be main( ), it cannot be anything else. All statements that belong to main( ) are enclosed within a pair of braces { } as shown below.&lt;br /&gt;
main( )&lt;br /&gt;
{&lt;br /&gt;
statement 1 ;&lt;br /&gt;
statement 2 ;&lt;br /&gt;
statement 3 ;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
− Technically speaking main( ) is a function. Every function has a pair of parentheses ( ) associated with it. We would discuss functions and their working in great detail in Chapter 5.&lt;br /&gt;
&lt;br /&gt;
− Any variable used in the program must be declared before using it. For example,&lt;br /&gt;
int p, n ;&lt;br /&gt;
float r, si ;&lt;br /&gt;
&lt;br /&gt;
− Any C statement always ends with a ;&lt;br /&gt;
For example,&lt;br /&gt;
float r, si ;&lt;br /&gt;
r = 8.5 ;&lt;br /&gt;
&lt;br /&gt;
− In the statement,&lt;br /&gt;
si = p * n * r / 100 ;&lt;br /&gt;
* and / are the arithmetic operators. The arithmetic operators available in C are +, -, * and /. C is very rich in operators. There are about 45 operators available in C. Surprisingly there is no operator for exponentiation... a slip, which can be forgiven considering the fact that C has been developed by an individual, not by a committee.&lt;br /&gt;
&lt;br /&gt;
− Once the value of si is calculated it needs to be displayed on the screen. Unlike other languages, C does not contain any instruction to display output on the screen. All output to screen is achieved using readymade library functions. One such&lt;br /&gt;
function is printf( ). We have used it display on the screen the value contained in si.&lt;br /&gt;
The general form of printf( ) function is,&lt;br /&gt;
printf ( &quot;&lt;format string&gt;&quot;, &lt;list of variables&gt; ) ;&lt;br /&gt;
&lt;format string&gt; can contain,&lt;br /&gt;
%f for printing real values&lt;br /&gt;
%d for printing integer values&lt;br /&gt;
%c for printing character values&lt;br /&gt;
In addition to format specifiers like %f, %d and %c the format string may also contain any other characters. These characters are printed as they are when the printf( ) is executed.&lt;br /&gt;
Following are some examples of usage of printf( ) function:&lt;br /&gt;
printf ( &quot;%f&quot;, si ) ;&lt;br /&gt;
printf ( &quot;%d %d %f %f&quot;, p, n, r, si ) ;&lt;br /&gt;
printf ( &quot;Simple interest = Rs. %f&quot;, si ) ;&lt;br /&gt;
printf ( &quot;Prin = %d \nRate = %f&quot;, p, r ) ;&lt;br /&gt;
The output of the last statement would look like this...&lt;br /&gt;
Prin = 1000&lt;br /&gt;
Rate = 8.5&lt;br /&gt;
What is ‘\n’ doing in this statement? It is called newline and it takes the cursor to the next line. Therefore, you get the output split over two lines. ‘\n’ is one of the several Escape Sequences available in C.&lt;br /&gt;
&lt;br /&gt;
printf( ) can not only print values of variables, it can also print the result of an expression. An expression is nothing but a valid combination of constants, variables and operators. Thus, 3, 3 + 2, c and a + b * c – d all are valid expressions. The results of these expressions can be printed as shown below:&lt;br /&gt;
printf ( &quot;%d %d %d %d&quot;, 3, 3 + 2, c, a + b * c – d ) ;&lt;br /&gt;
Note that 3 and c also represent valid expressions.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/390676516921683669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/390676516921683669'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/first-c-program.html' title='The First C Program'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-868995805364565962</id><published>2010-03-12T07:18:00.001-08:00</published><updated>2010-03-12T07:18:27.341-08:00</updated><title type='text'>C Keywords</title><content type='html'>Keywords are the words whose meaning has already been explained to the C compiler (or in a broad sense to the computer). The keywords cannot be used as variable names because if we do so we are trying to assign a new meaning to the keyword, which is not allowed by the computer. Some C compilers allow you to construct variable names that exactly resemble the keywords. However, it would be safer not to mix up the variable names and the keywords. The keywords are also called ‘Reserved words’.&lt;br /&gt;
There are only 32 keywords available in C. Figure 1.5 gives a list of these keywords for your ready reference. A detailed discussion of each of these keywords would be taken up in later chapters wherever their use is relevant.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/868995805364565962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/868995805364565962'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/c-keywords.html' title='C Keywords'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-2805386139622013611</id><published>2010-03-12T07:17:00.001-08:00</published><updated>2010-03-12T07:17:14.879-08:00</updated><title type='text'>Types of C Variables</title><content type='html'>As we saw earlier, an entity that may vary during program execution is called a variable. Variable names are names given to locations in memory. These locations can contain integer, real or character constants. In any language, the types of variables that it can support depend on the types of constants that it can handle. This is because a particular type of variable can hold only the same type of constant. For example, an integer variable can hold only an integer constant, a real variable can hold only a real constant and a character variable can hold only a character constant.&lt;br /&gt;
The rules for constructing different types of constants are different. However, for constructing variable names of all types the same set of rules apply. These rules are given below.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/2805386139622013611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/2805386139622013611'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/types-of-c-variables.html' title='Types of C Variables'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-3431328090469726720</id><published>2010-03-12T07:16:00.001-08:00</published><updated>2010-03-12T07:16:49.836-08:00</updated><title type='text'>Rules for Constructing Character Constants</title><content type='html'>A character constant is a single alphabet, a single digit or a single special symbol enclosed within single inverted commas. Both the inverted commas should point to the left. For example, ’A’ is a valid character constant whereas ‘A’ is not.&lt;br /&gt;
&lt;br /&gt;
The maximum length of a character constant can be 1 character.&lt;br /&gt;
Ex.: &#39;A&#39;&lt;br /&gt;
&#39;I&#39;&lt;br /&gt;
&#39;5&#39;&lt;br /&gt;
&#39;=&#39;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/3431328090469726720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/3431328090469726720'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/rules-for-constructing-character.html' title='Rules for Constructing Character Constants'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-1616313758620878165</id><published>2010-03-11T05:21:00.001-08:00</published><updated>2010-03-11T05:26:25.680-08:00</updated><title type='text'>Rules for Constructing Real Constants</title><content type='html'>Real constants are often called Floating Point constants. The real constants could be written in two forms—Fractional form and Exponential form.&lt;br /&gt;
Following rules must be observed while constructing real constants expressed in fractional form:&lt;br /&gt;
&lt;br /&gt;
1&gt;A real constant must have at least one digit.&lt;br /&gt;
&lt;br /&gt;
2&gt;It must have a decimal point.&lt;br /&gt;
&lt;br /&gt;
3&gt;It could be either positive or negative.&lt;br /&gt;
&lt;br /&gt;
4&gt;Default sign is positive.&lt;br /&gt;
&lt;br /&gt;
5&gt;No commas or blanks are allowed within a real constant.&lt;br /&gt;
Ex.: +325.34&lt;br /&gt;
426.0&lt;br /&gt;
-32.76&lt;br /&gt;
-48.5792&lt;br /&gt;
The exponential form of representation of real constants is usually used if the value of the constant is either too small or too large. It however doesn’t restrict us in any way from using exponential form of representation for other real constants.&lt;br /&gt;
&lt;br /&gt;
In exponential form of representation, the real constant is represented in two parts. The part appearing before ‘e’ is called mantissa, whereas the part following ‘e’ is called exponent.&lt;br /&gt;
Following rules must be observed while constructing real constants expressed in exponential form:&lt;br /&gt;
1&gt;The mantissa part and the exponential part should be separated by a letter e.&lt;br /&gt;
&lt;br /&gt;
2&gt;The mantissa part may have a positive or negative sign.&lt;br /&gt;
&lt;br /&gt;
3&gt;Default sign of mantissa part is positive.&lt;br /&gt;
&lt;br /&gt;
4&gt;The exponent must have at least one digit, which must be a positive or negative integer. Default sign is positive.&lt;br /&gt;
&lt;br /&gt;
5&gt;Range of real constants expressed in exponential form is -3.4e38 to 3.4e38.&lt;br /&gt;
Ex.: +3.2e-5&lt;br /&gt;
4.1e8&lt;br /&gt;
-0.2e+3&lt;br /&gt;
-3.2e-5&lt;br /&gt;
&lt;hr&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/1616313758620878165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/1616313758620878165'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/rules-for-constructing-real-constants.html' title='Rules for Constructing Real Constants'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-5381035692680301256</id><published>2010-03-11T05:20:00.000-08:00</published><updated>2010-03-11T05:20:16.098-08:00</updated><title type='text'>Rules for Constructing Integer Constants</title><content type='html'>1&gt;An integer constant must have at least one digit.&lt;br /&gt;
&lt;br /&gt;
2&gt;It must not have a decimal point.&lt;br /&gt;
&lt;br /&gt;
3&gt;It can be either positive or negative.&lt;br /&gt;
&lt;br /&gt;
4&gt;If no sign precedes an integer constant it is assumed to be positive.&lt;br /&gt;
&lt;br /&gt;
5&gt;No commas or blanks are allowed within an integer constant.&lt;br /&gt;
&lt;br /&gt;
6&gt;The allowable range for integer constants is -32768 to 32767.&lt;br /&gt;
Truly speaking the range of an Integer constant depends upon the compiler. For a 16-bit compiler like Turbo C or Turbo C++ the range is –32768 to 32767. For a 32-bit compiler the range would be even greater. Question like what exactly do you mean by a 16-bit or a 32-bit compiler, what range of an Integer constant has to do with the type of compiler and such questions are discussed in detail in Chapter 16. Till that time it would be assumed that we are working with a 16-bit compiler.&lt;br /&gt;
Ex.: 426&lt;br /&gt;
+782&lt;br /&gt;
-8000&lt;br /&gt;
-7605&lt;br /&gt;
&lt;hr&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/5381035692680301256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/5381035692680301256'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/rules-for-constructing-integer.html' title='Rules for Constructing Integer Constants'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-5576072303141635445</id><published>2010-03-11T05:16:00.000-08:00</published><updated>2010-03-11T05:17:13.642-08:00</updated><title type='text'>Types of C Constants</title><content type='html'>C constants can be divided into two major categories:&lt;br /&gt;
&lt;br /&gt;
(a)Primary Constants&lt;br /&gt;
(b)Secondary Constants&lt;br /&gt;
&lt;br /&gt;
C Constants&lt;br /&gt;
&lt;hr&gt;[1]Primary Constants&lt;br /&gt;
-Integer Constant&lt;br /&gt;
-Real Constant&lt;br /&gt;
-Character Constant&lt;br /&gt;
[2]Secondary Constants&lt;br /&gt;
-Array&lt;br /&gt;
-Pointer&lt;br /&gt;
-Structure&lt;br /&gt;
-Union&lt;br /&gt;
-Enum,etc.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/5576072303141635445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/5576072303141635445'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/types-of-c-constants.html' title='Types of C Constants'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-7947341686961117431</id><published>2010-03-11T05:12:00.001-08:00</published><updated>2010-03-11T05:12:26.760-08:00</updated><title type='text'>Constants, Variables and Keywords</title><content type='html'>The alphabets, numbers and special symbols when properly combined form constants, variables and keywords. Let us see what are ‘constants’ and ‘variables’ in C. A constant is an entity that doesn’t change whereas a variable is an entity that may change.&lt;br /&gt;
In any program we typically do lots of calculations. The results of these calculations are stored in computers memory. Like human memory the computer memory also consists of millions of cells. The calculated values are stored in these memory cells. To make the retrieval and usage of these values easy these memory cells (also called memory locations) are given names. Since the value stored in each location may change the names given to these locations are called variable names. &lt;br /&gt;
&lt;hr&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/7947341686961117431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/7947341686961117431'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/constants-variables-and-keywords.html' title='Constants, Variables and Keywords'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-5119744579503150335</id><published>2010-03-10T04:37:00.001-08:00</published><updated>2010-03-10T04:37:57.368-08:00</updated><title type='text'>Write a programe for Calculation of simple interest</title><content type='html'>#include&lt; stdio.h &gt;&lt;br /&gt;
#include&lt; conio.h &gt;&lt;br /&gt;
&lt;br /&gt;
void main( )&lt;br /&gt;
{&lt;br /&gt;
int   p, n ;&lt;br /&gt;
float   r, si ;&lt;br /&gt;
clrscr();&lt;br /&gt;
p = 1000 ;&lt;br /&gt;
n = 3 ;&lt;br /&gt;
r = 8.5 ;&lt;br /&gt;
&lt;br /&gt;
/* formula for simple interest */&lt;br /&gt;
si = p * n * r / 100 ;&lt;br /&gt;
&lt;br /&gt;
printf ( &quot;%f&quot; , si ) ;&lt;br /&gt;
getch();&lt;br /&gt;
}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/5119744579503150335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/5119744579503150335'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/write-programe-for-calculation-of.html' title='Write a programe for Calculation of simple interest'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-6337676169800627054</id><published>2010-03-10T04:36:00.000-08:00</published><updated>2010-03-10T04:36:26.786-08:00</updated><title type='text'>What is C</title><content type='html'>C is a programming language developed at AT &amp; T’s Bell Laboratories of USA in 1972. It was designed and written by a man named Dennis Ritchie. In the late seventies C began to replace the more familiar languages of that time like PL/I, ALGOL, etc. No one pushed C. It wasn’t made the ‘official’ Bell Labs language. Thus, without any advertisement C’s reputation spread and its pool of users grew. Ritchie seems to have been rather surprised that so many programmers preferred C to older languages like FORTRAN or PL/I, or the newer ones like Pascal and APL. But, that&#39;s what happened.&lt;br /&gt;
Possibly why C seems so popular is because it is reliable, simple and easy to use. Moreover, in an industry where newer languages, tools and technologies emerge and vanish day in and day out, a language that has survived for more than 3 decades has to be really good.&lt;br /&gt;
An opinion that is often heard today is – “C has been already superceded by languages like C++, C# and Java, so why bother to learn C today”. I seriously beg to differ with this opinion. There are several reasons for this:&lt;br /&gt;
I believe that nobody can learn C++ or Java directly. This is because while learning these languages you have things like classes, objects, inheritance, polymorphism, templates, exception handling, references, etc. do deal with apart from knowing the actual language elements. Learning these complicated concepts when you are not even comfortable with the basic language elements is like putting the cart before the horse. Hence one should first learn all the language elements very thoroughly using C language before migrating to C++, C# or Java. Though this two step learning process may take more time, but at the end of it you will definitely find it worth the trouble.&lt;br /&gt;
C++, C# or Java make use of a principle called Object Oriented Programming (OOP) to organize the program. This organizing principle has lots of advantages to offer. But even while using this organizing principle you would still need a good hold over the language elements of C and the basic programming skills.&lt;br /&gt;
Though many C++ and Java based programming tools and frameworks have evolved over the years the importance of C is still unchallenged because knowingly or unknowingly while using these frameworks and tools you would be still required to use the core C language elements—another good reason why one should learn C before C++, C# or Java.&lt;br /&gt;
Major parts of popular operating systems like Windows, UNIX, Linux is still written in C. This is because even today when it comes to performance (speed of execution) nothing beats C. Moreover, if one is to extend the operating system to work with new devices one needs to write device driver programs. These programs are exclusively written in C.&lt;br /&gt;
Mobile devices like cellular phones and palmtops are becoming increasingly popular. Also, common consumer devices like microwave oven, washing machines and digital cameras are getting smarter by the day. This smartness comes from a microprocessor, an operating system and a program embedded in this devices. These programs not only have to run fast but also have to work in limited amount of memory. No wonder that such programs are written in C. With these constraints on time and space, C is the language of choice while building such operating systems and programs.&lt;br /&gt;
You must have seen several professional 3D computer games where the user navigates some object, like say a spaceship and fires bullets at the invaders. The essence of all such games is speed. Needless to say, such games won&#39;t become popular if they takes a long time to move the spaceship or to fire a bullet. To match the expectations of the player the game has to react fast to the user inputs. This is where C language scores over other languages. Many popular gaming frameworks have been built using C language.&lt;br /&gt;
At times one is required to very closely interact with the hardware devices. Since C provides several language elements that make this interaction feasible without compromising the performance it is the preferred choice of the programmer.&lt;br /&gt;
I hope that these are very convincing reasons why one should adopt C as the first and the very important step in your quest for learning programming languages.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/6337676169800627054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/6337676169800627054'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/what-is-c.html' title='What is C'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-1225260069364154488</id><published>2010-03-10T04:22:00.001-08:00</published><updated>2010-03-10T04:23:38.788-08:00</updated><title type='text'>Know about Comment</title><content type='html'>A comment is a piece of descriptive text which explains some aspect of a program. Program comments are totally ignored by the compiler and are only intended for human readers. C++ provides two types of comment delimiters:&lt;br /&gt;
* Anything after // (until the end of the line on which it appears) is considered a comment.&lt;br /&gt;
* Anything enclosed by the pair /* and */ is considered a comment.&lt;br /&gt;
Listing 1.6 illustrates the use of both forms.&lt;br /&gt;
&lt;br /&gt;
Listing 1.6&lt;br /&gt;
&lt;hr&gt;#include &lt; iostream.h &gt;&lt;br /&gt;
&lt;br /&gt;
/* This program calculates the weekly gross pay for a worker,&lt;br /&gt;
based on the total number of hours worked and the hourly pay &lt;br /&gt;
rate. */&lt;br /&gt;
&lt;br /&gt;
int main (void)&lt;br /&gt;
{&lt;br /&gt;
int  workDays = 5;  // Number of work days per week&lt;br /&gt;
float workHours = 7.5;  // Number of work hours per day&lt;br /&gt;
float payRate = 33.50;  // Hourly pay rate&lt;br /&gt;
float weeklyPay;   // Gross weekly pay&lt;br /&gt;
&lt;br /&gt;
weeklyPay = workDays * workHours * payRate;&lt;br /&gt;
cout &lt;&lt; &quot;Weekly Pay = &quot; &lt;&lt; weeklyPay &lt;&lt; &#39;\n&#39;;
}
&lt;hr&gt;&lt;br /&gt;
Comments should be used to enhance (not to hinder) the readability of a program. The following two points, in particular, should be noted:&lt;br /&gt;
* A comment should be easier to read and understand than the code which it tries to explain. A confusing or unnecessarily-complex comment is worse than no comment at all.&lt;br /&gt;
* Over-use of comments can lead to even less readability. A program which contains so much comment that you can hardly see the code can by no means be considered readable.&lt;br /&gt;
* Use of descriptive names for variables and other entities in a program, and proper indentation of the code can reduce the need for using comments.&lt;br /&gt;
The best guideline for how to use comments is to simply apply common sense.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/1225260069364154488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/1225260069364154488'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/know-about-comment.html' title='Know about Comment'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-7576267001871599965</id><published>2010-03-10T04:18:00.000-08:00</published><updated>2010-03-10T04:18:28.250-08:00</updated><title type='text'>Write a programe for see the Effects of prefix and postfix notation</title><content type='html'>#include &lt; iostream &gt;&lt;br /&gt;
using namespace std;&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
int i(2), j(8);&lt;br /&gt;
cout &lt;&lt; i++ &lt;&lt; endl;        // Output: 2&lt;br /&gt;
cout &lt;&lt; i &lt;&lt; endl;         // Output: 3&lt;br /&gt;
cout &lt;&lt; j-- &lt;&lt; endl;      // Output: 8&lt;br /&gt;
cout &lt;&lt; --j &lt;&lt; endl;     // Output: 6&lt;br /&gt;
return 0;&lt;br /&gt;
}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/7576267001871599965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/7576267001871599965'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/write-programe-for-see-effects-of.html' title='Write a programe for see the Effects of prefix and postfix notation'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-4629531332800076932</id><published>2010-03-10T04:16:00.001-08:00</published><updated>2010-03-10T04:16:14.807-08:00</updated><title type='text'>Expressions</title><content type='html'>In its simplest form an expression consists of only one constant, one variable, or one&lt;br /&gt;
function call. Expressions can be used as the operands of operators to form more complex&lt;br /&gt;
expressions. An expression will generally tend to be a combination of operators and&lt;br /&gt;
operands.&lt;br /&gt;
Each expression that is not a void type returns a value. In the case of arithmetic&lt;br /&gt;
expressions, the operands define the type of the expression.&lt;br /&gt;
Examples: int a(4); double x(7.9);&lt;br /&gt;
a * 512 // Type int&lt;br /&gt;
1.0 + sin(x) // Type double&lt;br /&gt;
x – 3 // Type double, since one&lt;br /&gt;
// operand is of type double&lt;br /&gt;
An expression can be used as an operand in another expression.&lt;br /&gt;
Example: 2 + 7 * 3 // Adds 2 and 21&lt;br /&gt;
Normal mathematical rules (multiplication before addition) apply when evaluating an&lt;br /&gt;
expression, i.e. the *, /, % operators have higher precedence than + and -. In our example,&lt;br /&gt;
7*3 is first calculated before adding 2. However, you can use parentheses to apply a&lt;br /&gt;
different precedence order.&lt;br /&gt;
Example: (2 + 7) * 3 // Multiplies 9 by 3.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/4629531332800076932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/4629531332800076932'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/expressions.html' title='Expressions'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-8308739650579299613</id><published>2010-03-10T04:15:00.001-08:00</published><updated>2010-03-10T04:15:21.250-08:00</updated><title type='text'>Binary Arithmetic Operators</title><content type='html'>Arithmetic operators are used to perform calculations. The opposite page shows an&lt;br /&gt;
overview. You should be aware of the following:&lt;br /&gt;
■ Divisions performed with integral operands will produce integral results; for example,&lt;br /&gt;
7/2 computes to 3. If at least one of the operands is a floating-point number,&lt;br /&gt;
the result will also be a floating-point number; e.g., the division 7.0/2 produces&lt;br /&gt;
an exact result of 3.5.&lt;br /&gt;
■ Remainder division is only applicable to integral operands and returns the remainder&lt;br /&gt;
of an integral division. For example, 7%2 computes to 1.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/8308739650579299613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/8308739650579299613'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/binary-arithmetic-operators.html' title='Binary Arithmetic Operators'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3060842794449575462.post-2607437968804053454</id><published>2010-03-10T04:13:00.001-08:00</published><updated>2010-03-10T04:13:11.870-08:00</updated><title type='text'>I/O Stream Classes</title><content type='html'>During the development of C++ a new class-based input/output system was implemented.&lt;br /&gt;
This gave rise to the I/O stream classes, which are now available in a library of&lt;br /&gt;
their own, the so-called iostream library.&lt;br /&gt;
The diagram on the opposite page shows how a so-called class hierarchy develops due&lt;br /&gt;
to inheritance. The class ios is the base class of all other stream classes. It contains the&lt;br /&gt;
attributes and abilities common to all streams. Effectively, the ios class&lt;br /&gt;
■ manages the connection to the physical data stream that writes your program’s&lt;br /&gt;
data to a file or outputs the data on screen&lt;br /&gt;
■ contains the basic functions needed for formatting data. A number of flags that&lt;br /&gt;
determine how character input is interpreted have been defined for this purpose.&lt;br /&gt;
The istream and ostream classes derived from ios form a user-friendly interface&lt;br /&gt;
for stream manipulation. The istream class is used for reading streams and the&lt;br /&gt;
ostream class is used for writing to streams. The operator &gt;&gt; is defined in istream&lt;br /&gt;
and &lt;&lt; is defined in ostream, for example.&lt;br /&gt;
The iostream class is derived by multiple inheritance from istream and ostream&lt;br /&gt;
and thus offers the functionality of both classes.&lt;br /&gt;
Further stream classes, a file management class, for example, are derived from the&lt;br /&gt;
classes mentioned above. This allows the developer to use the techniques described for&lt;br /&gt;
file manipulation. These classes, which also contain methods for opening and closing&lt;br /&gt;
files, will be discussed in a later chapter.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/2607437968804053454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3060842794449575462/posts/default/2607437968804053454'/><link rel='alternate' type='text/html' href='http://programeansic.blogspot.com/2010/03/io-stream-classes.html' title='I/O Stream Classes'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>