General Discussions

Why File Pointers are of type FILE

When working with files in C programming language, we define and use a file pointer of data type FILE. For say example we use: FILE *out_file; One could always have a question, that, why use FILE? From where is that data type suddenly popped out? The reason being that C header files have a structure… Continue reading Why File Pointers are of type FILE

General Discussions

C Pointers and Major Types

Pointer: Pointer is a variable which holds the address of another variable. NULL Pointer: A null pointer has a value reserved for indicating that the pointer does not refer to a valid object. It is a pointer initialized to NULL value. Void Pointer: Are pointers pointing to data of no specific data type. The compiler… Continue reading C Pointers and Major Types

General Discussions

Algorithm in Layman’s Terms

Originally posted on PH Bytes:
Layman: What’s an algorithm? He: Do you see that how you always find out a easier way of doing things given to you? Sometimes its the long road and sometimes its the shortcut. You always have a ‘way’ to do things. From basic common sense to expert knowledge! Layman: Yeah!!…

General Discussions

Algorithms and 10 Step Process

When we talk of algorithms, following are the properties we generally refer to: The non-ambiguity requirement for each step of an algorithm cannot be compromised The range of inputs for which an algorithm works has to be specified carefully The same algorithm can be represented in several different ways Several algorithms for solving the same… Continue reading Algorithms and 10 Step Process

General Discussions

Handling the vcvarsall.bat error

Originally posted on PH Bytes:
We might end up with the “unable to find vcvarsall.bat” error while installing the python packages on windows system. Why it happens? When we try to install the python package, it has to compile that c/c++ file from source(python is not just a .py) for which there is a need of…

C Codes

Missing Array Intermediates – C code

Problem: Printing the missing array intermediates As a input, collect a sorted array of integer elements from the user. The task is to print the intermediate missing elements. Example: If the user enters the array elements as: {1, 4, 7, 9, 10, 11, 12, 15} Then, output has to be: 2, 3, 5, 6, 8,… Continue reading Missing Array Intermediates – C code

General Discussions

Intelligent? Who?

Humans will add the required intelligence and logic. Programming Languages will give the syntax. Machine is going to follow the rules and be called intelligent! –PH

General Discussions

The Evolving Web

Since the birth of web it has always demanded technologies that make sense and be  more human friendly. When web was instantiated: Rendering Transfer of documents and Data were the key challenges. As the web grew, it was not understood alike by everyone. It grew with plethora of information, products and services, readily discoverable by… Continue reading The Evolving Web

General Discussions

Token Provider System – Tabuada’s Way

Originally posted on PH Bytes:
Token provider system is the simpler version of token based system, where tokens are provided to the customers to provide the service on the first come first serve basis. The system modeled here works by providing the next token number for every new customer who walks in. The token number starts from 1…