Friday, December 6, 2013

Difference between declaration and definition

Declaration
-----------------
      Declaration tells the type of the variable only. That is , it tells whether it is an int or a float or a char. But, the space needed for the variable is not allocated during declaration.
int a;
After this statement, the compiler knows that there is going to be a variable a of type 'int'. But no space is allocated.


Definitionl
--------------
        Space is allocated for the variable and some initial value is assigned.
int a=50;
Variable a is initialised and assigned a value. Only during this definition, space for the variable is allocated.

Note
--------
Redefinition is an error but redeclaration is not an error.



Tuesday, December 3, 2013

Hare and Tortoise

THE HARE AND THE TORTOISE


Once there lived a tortoise and a haughty hare in the forest. Everyday it used to tease the tortoise for its slowness and the tortoise was offended by his words. The hare repeatedly pointed out his slow nature and compared that with his swiftness.



One day, he had crossed his limits and added,"Shall we have a running race??? Can you compete with me???". The frustrated tortoise replied,"Ok. I will". The hare was surprised.



The day has come and the race started. The hare ran as fast as he can. He has covers almost half the distance.  The high handed hare felt over confident about his winning the race. So he thought of taking rest until the tortoise crosses his place.


But the fate did not favor the imperious hare. He slept. Though he was slow, the tortoise reached the place where the hare was sleeping. He saw the hare sleeping and increase his pace to reach the destination faster.


The hare woke up after a long time and was suddenly shocked when he realized that he had slept. He started running extremely fast towards the destination but to his disappointment, the tortoise had already reached the destination.



Moral of the Story : Slow and Steady Wins the Race.
                                  Its not a matter how slow you go until you stop.
                                  Don't underestimate others.
                                  Don't be overconfident.

The Feel of Missing

                                                 "Miss You" is the statement used by almost everyone in their day to day life. The feel of missing is common among relationships and its really a question of debate whether they mean when they say it. How many of those who frequently use this statement know the real meaning of the word 'Miss'. The word 'Miss' is closely associated with pain. Its the pain of someone's absence makes us utter the word 'Miss'.

      
                                                 Missing someone is when we feel empty without them. Missing is when we feel lonely without them. Missing is when your heart wishes his/her presence right then. Missing is not proportional to the time interval between the successive meets but its really proportional to the rate in which we need their presence when we do something.Missing is when it hurts a lot on thinking of the bountiful waiting time to meet. Yet,there is a strange soothing fact in missing that we feel pleased and better when the person whom we miss, misses us too. Pleasure in Pain. Its like a drop of rain in an arid desert. 

                                                  But, the pain is worse when we realize that we cant meet or ever have their presence again in our life. The pain of missing the dear ones in our life will definitely step into everyone's life and no one is an exception. The more we love, the more we miss. 

                                                   The pain is directly proportionate to the amount of love we have on them. Pain of missing chases everyone of us. It may have already attacked us. It may be attacking us at present or it may attack us in future. But, the point is it will surely attack us. The number of times we are attacked and the intensity of attack varies from person to person.

                                                     So, everybody should be ready always to face the attack and encounter the pain. We cant avoid the pain but we can prepare our self to face it. Those who mean when they say 'Miss You' would have felt the squeezing pain of heart and have understood that Time is the best healer for anything and everything.

                                                   My Dear, I miss you each and every second of my life. I feel nothing without you. When my eyes become watery, I realize that I am thinking of you. I miss you when the sun rises and the sun sets. I miss you when it it is hot and when it is cold. I miss you when i sleep and when i am awake. I miss you whenever i breathe. You are now out of my sight but you have never been out of my mind. Everyday my love for you increases and so the pain. Now, am under the attack and experiencing the pain and so i want to say you  'I Miss you' and I mean it.



                    -----  Dedicated to my dear one whom I miss a lot ------- 
                                                   

                                                








                                                  

Monday, December 2, 2013

C Aptitude 1

Question :  What will be the output of the following program?
          
                  #include<stdio.h>
                  int x=15;
                  void main()
                 {
                  int x=5;
                  printf("\n %d",x);
                 }

Answer : 5.

Reason : Local variable has higher priority over Global Variable


Question :     What will be the output of the following program?

                     #include<stdio.h>

                  int x=15;
                  void main()
                 {
                  int x=5;
                  {
                     int x=1;
                     printf("\n %d",x);
                 }
                }

Answer : 1

Reason  :  The variable that is more local has higher priority among all the local variables.

Wednesday, August 28, 2013

Word of the day - infantilize

Word       : Infantilize
Meaning : Treat someone as a child, to regard as immature
Usage     : 1. Her parents  infantilize her by still feeding her the food.
                 2. If you infantilize the poor boy by giving him money, he would stop helping himself.
                 3. In olden days , women were infantilized and denied education.


Tuesday, August 27, 2013

Word of the day - Lackadaisical

Word      : Lackadaisical
Meaning : Lacking life, spirit
Usage     : 1. Many students fail in their academics because of their lackadaisical approach to it.
                 2. The lackadaisical teachers should be shook up to improve the quality of                                                        education.
                 3. Success does not follow those who are lackadaisical.


Sunday, August 25, 2013

NUMBERS - SPECIALITY

SPECIALITY OF NUMBERS -- 1

1. THE PRODUCT OF ANY TWO CONSECUTIVE NUMBERS 
    IS ALWAYS DIVISIBLE BY 2 (One of these two numbers is even)
             
               Examples :  2*3         divisible by 2
                                  56*57      divisible by 2
                                  147*148  divisible by 2

2. THE PRODUCT OF ANY THREE CONSECUTIVE NUMBERS 
    IS ALWAYS DIVISIBLE BY 6

               Examples :  1*2*3            divisible by 6
                                  34*35*36       divisible by 6
                                  157*158*159 divisible by 6

3. THE PRODUCT OF ANY FOUR CONSECUTIVE NUMBERS 
    IS ALWAYS DIVISIBLE BY 24

               Examples : 1*2*3*4                divisible by 24
                                 45*46*47*48          divisible by 24
                                 179*180*181*182  divisible by 24

4. THE PRODUCT OF ANY FIVE CONSECUTIVE NUMBERS 
    IS ALWAYS DIVISIBLE BY 120

              Examples : 1*2*3*4*5          divisible by 120
                                23*24*25*26*27 divisible by 120
                                77*78*79*80*81 divisible by 120

Word of the Day - Apocryphal

Word      : Apocryphal
Meaning : Doubtful, Fictitious
Usage     : 1. It is an apocryphal story about the extra terrestrial beings.
                 2. She told an apocryphal story about her result but later the truth was discovered.
                 3. This story is certainly apocryphal but I want to believe it.


Saturday, August 24, 2013

Maggi Analogy For Software Development LifeCycle

Feeling Hungry??? Deliberately in need of something to appease your hunger?????

2 Minutes.......... Noodles Ready...... Cook........ Eat.......... Enjoy..........

Let us enjoy the feel of cooking and eating Maggi reading this and as a by-product let us learn something technical too..

Requirements for Preparing Maggi:                                                 
                  1. Maggi Packet                                                               
                  2. Water                                                                           
                  3. Stove                                                                            
                  4. Lighter/Match Stick                                                      
                  5. Kadai                                                                            
                  6. Spatula                                                                  

Requirements of SDLC:
                   As we have listed down all the requirements for preparing Maggi, the initial phase of Software Development LifeCycle is listing down the requirements for the development of the software. For example, we may need certain set of hardware, software, technical resources, capital amount, tools, etc. Those are listed down. This comes under the Requirements phase of SDLC.

Analysis : Preparing Maggi:
                     Just imagine that we have never prepared Maggi before and if so we will look into the instructions on how to cook in the rear side of the packet. Here, we analyse how to prepare Maggi by looking on to the instructions or the procedure.

Analysis : SDLC
                     Like we analysed on how to cook Maggi looking on to the instructions, here we just analyse on how to develop the project or software for which we have listed down the requirements. We analyse it with the help of many aids such as document history, technical expertise suggestions and so on. Here, we just think or plan what should be done for the development of the software.


Design : Preparing Maggi
                     After looking onto the instructions, we just plan in our mind how to carry out the listed steps before actually doing it.

Design : SDLC
                    Similar to the Design phase of Maggi preparation where we plan how to execute the steps we have analysed, in software development we plan how to execute the outcome of Analysis. In Analysis, we plan what to do and in Design phase we plan how to do it. Design phase includes preparation of flowcharts, etc which aids in the actual execution.

Coding : Preparing Maggi
                   We start preparing maggi making use of all the requirements listed. Since we have planned already on what to do and how to do, we start doing now. 

Coding : SDLC
                    We start programming or code the software what we have planned to develop. The outcomes of Analysis Phase and Design Phase guides us what to do and how to do with the help of which we start coding or developing the software.

Testing : Preparing Maggi
                    After preparing Maggi, we test a sample by tasting whether it has turned out good or not and whether it is properly cooked.

Testing : SDLC
                   After the software has been coded, we test the software with certain standards which is actually performed by the Quality Analysis team. We check whether the developed software meets all the standards.

Acceptance: Preparing Maggi
                   If the maggi prepared by us is tasted by some one else and if they accept that the prepared maggi tastes good, then we can say that the maggi we prepared has been accepted.

Acceptance : SDLC
                  If the developed software has been accepted by the one who has assigned this task of developing the software, then we say our development cycle is completed.


Enjoyed Cooking Maggi??? Learnt SDLC???

Now, will you forget The Software Development LifeCycle? I guess No.

Whenever you come across this SDLC, hope this Maggi Analogy comes into your mind and helps you out.



Friday, August 23, 2013

Word of the Day - Replete

Word : Replete
Meaning : Full, Abundant, Satisfied with food
Usage : 1. This book is replete with descriptive details.
             2. I am feeling replete after the sumptuous meal.
             3. Your assignment is replete with grammatical errors.