General Discussions

The Clear Up

Take a walk outside. Clear all your thoughts about the doubts of ‘if you will be a good programmer or not’. Flush out any opinions you have which you had gathered from somewhere else and if you had decided that programming is not your cup of tea. Yeah! If not green tea, we shall have… Continue reading The Clear Up

General Discussions

Operations on Structures

Following are the things to keep in mind while operating on structures: Comparison 1. Two structure variables cannot be compared. Whether they are of same type of dissimilar, they can’t be. 2. Members of two structure variables of same type can be compared using relational operators. Copying 2 structure variables 1. One structure variable can… Continue reading Operations on Structures

General Discussions

The Story of X

Okay. We know that we need to get better in logic. This happens in many ways.   One is to understand the complete picture of the problem we are working. Understanding the scenarios is important in the programming context. One needs to understand the type of environment we are now working in. Let us consider an… Continue reading The Story of X

General Discussions

Understanding Stacks (DS)

This post helps in better understanding of stack data structure. Let us consider an array with the name ‘array’ of size ‘n’. You can access any element of the array by specifying the appropriate index. Visualize the picture mentally and this is how probably it should look like:   Let us now understand how an… Continue reading Understanding Stacks (DS)

General Discussions

Time Please!

We know that ‘computation is a process of unfolding the given problem’. I always had this question, why is it not ‘computation is a process of unfolding the given problem with respect to time’? Everything we do has the time dimension. We have seen hardware students doing it as well, but why not in software’s? That is… Continue reading Time Please!

General Discussions

Arrays in C – Pros and Cons

Set 01: Pro: It can hold the collection of similar items Con: It can hold the collection of similar items only Set 02: Pro: Memory allocated is continuous. You can increment the index to move to next element.  You can refer to any item in array using its index Con: Memory allocated is continuous. If… Continue reading Arrays in C – Pros and Cons

General Discussions

malloc( ) in C

Function malloc() is used to dynamically allocate the memory in C. The general syntax goes the following way: (type_casting) malloc (size) let us understand it in detail in the form of a conversation: That’s how the components of the syntax: “(type casting the pointer) malloc(specifying the size) “ can be understood.   A sample source… Continue reading malloc( ) in C

General Discussions

Why Suddenly The languages I Studied Look Bad!?

The decisive goal of each programming language is to keep it effortless for the user and conceal the complexity in the implementation. The intact notion of theory in computer science verbalizes the abstraction by keeping it easy to the user. The theory puts a demand that every perception needs a formal proof for acceptance. Every… Continue reading Why Suddenly The languages I Studied Look Bad!?