Posts

Image
Positive attitude   A Positive Attitude Leads to Success and Happiness. A positive attitude helps you cope more easily with the daily affairs of life. It brings optimism into your life, and makes it easier to avoid worries and negative thinking. If you adopt it as a way of life, it would bring constructive changes into your life, and makes them happier, brighter and more successful. With a positive attitude you see the bright side of life, become optimistic, and expect the best to happen. It is certainly a state of mind that is well worth developing. Positive attitude manifests in the following ways: Positive thinking. Constructive thinking. Creative thinking. Optimism. Motivation and energy to do things and accomplish goals. An attitude of happiness. A positive frame of mind can help you in many ways, such as: Expecting success and not failure. Making you feel inspired. It gives you the strength not to give up, if you encounter obstacles on your way. It makes you look at fail
Image
 KEY TO HAPPINESS Lit your Face with Smile choose to be happy,always keep smile on your face. Try to be contended Happiness is an attitude of mind, Happy people focus on what they have, unhappy people focus on what’s missing. Be a positive thinker Get going. Move forward. Aim High. Plan a takeoff. Don't just sit on the runway and hope someone will come along and push the airplane. It simply won't happen. Change your attitude and gain some altitude. Believe me, you'll love it up here. keep on moving .......................
Image
  Some best feelings in life     Achieving a goal Hugging someone you really missed Waking up in the morning and staying refreshed Going for outing,and long drive Laughing with someone and realizing halfway through ,how much you enjoyed them and their existence Sleep after exhaustion being able to eat the foods you have been craving for yearssss seeing your favourite car. Remembering that you have a whole tub of ice cream in the freezer, like I just did right now! and last but not the least as i told you all i love music most of all,.Listening to your favourite song over and over. Finding ‘live’ versions of it on YouTube and listening to those, too,gives you the best feelings
  "Do What You Love" "The only way to do great work is to love what you do. If you haven’t found it yet, keep looking. Don’t settle." ― Steve Jobs As kids, we are taught to keep work time and play time separate. My mom used to say, "If you work for two hours, you can play for an hour". Your parent(s) probably said something similar to you too. If not, you're weird. Jk. :) We are made to believe that work and play are opposites. We were trained to not have fun while we work, because there is a separate time for that and you have to earn the right to have fun. As we grow older, you are told that if you do what you like, you tend to do it well. In other words, you do well what you like. Or at least pretend to like. Because if you do your work well (by liking it), you get to go home early and have fun. Why do what you love? There are thousands of students in your school or hundreds i
Pure Functions A function is called pure function if it always returns the same result for same argument values and it has no side effects like modifying an argument (or global variable) or outputting something. The only result of calling a pure function is the return value. Examples of pure functions are strlen(), pow(), sqrt() etc. Examples of impure functions are printf(), rand(), time(), etc. If a function is known as pure to compiler then Loop optimization and subexpression elimination can be applied to it. In GCC, we can mark functions as pure using the “pure” attribute. __attribute__ ((pure)) return-type fun-name(arguments1, …) { /* function body */ }   Following is an example pure function that returns square of a passed integer. __attribute__ _((pure)) int my_square( int val) {      return val*val; } Consider the below example for (len = 0; len < strlen (str); ++len)      printf ( "%c" , toupper (str[l
How does the linker or interpreter recognize the indentation in python? The lexical analyzer (tokenizer) uses a stack to store indentation levels. At the beginning, the stack contains just the value 0, which is the leftmost position. Whenever a nested block begins, the new indentation level is pushed on the stack, and an “INDENT” token is inserted into the token stream which is passed to the parser. There can never be more than one “INDENT” token in a row. When a line is encountered with a smaller indentation level, values are popped from the stack until a value is on top which is equal to the new indentation level (if none is found, a syntax error occurs). For each value popped, a “DEDENT” token is generated. Obviously, there can be multiple “DEDENT” tokens in a row. At the end of the source code, “DEDENT” tokens are generated for each indentation level left on the stack, until just the 0 is left. The parser then simply handles the “INDENT” and “DEDENT” tokens as block deli