Browsing the topic Articles
Why performance analysis? There are many important things that should be taken care of, like user friendliness, modularity, security, maintainability, etc. Why to worry about performance?
Read More »Scope of an identifier is the part of the program where the identifier may directly be accessible. In C, all identifiers are lexically (or statically) scoped. C scope rules can be covered under following two categories.
Read More »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.
Read More »The volatile keyword is intended to prevent the compiler from applying any optimizations on objects that can change in ways that cannot be determined by the compiler.
Read More »A typical memory representation of C program consists of following sections.
Read More »What are the differences between Mutex vs Semaphore? When to use mutex and when to use semaphore?
Read More »Object Oriented Programming paradigm deals with centralizing data and associated behaviours in a single entity. The entities will communicate by message passing.
Read More »There are posts on representation of floating point format. The objective of this article is to provide a brief introduction to floating point format.
Read More »Structure Member Alignment, Padding and Data Packing
27 Comments | Filed under Articles C/C++ PuzzlesWhat do we mean by data alignment, structure packing and padding? Predict the output of following program.
Read More »What we mean by reentrancy and reentrant function? What is it’s significance in programming? What are the conditions that a function to be reentrant?
Read More »We know that the elements in a structure will be stored in sequential order of their declaration.
Read More »Recursion: In programming terms a recursive function can be defined as a routine that calls itself directly or indirectly.
Read More »exit() exit() terminates the process normally.
Read More »A quine is a program which prints a copy of its own as the only output. A quine takes no input. Quines are named after the American mathematician and logician Willard Van Orman Quine (1908–2000). The interesting thing is you are not allowed to use open and then print file of the program.
Read More »Consider the below program.
Read More »Asked by geek4u Consider the below program.
Read More »Let us consider the below program.
Read More »In C, a string can be referred either using a character pointer or as a character array.
Read More »Registers are faster than memory to access, so the variables which are most frequently used in a C program can be put in registers using register keyword.
Read More »Uninitialized pointers are known as wild pointers because they point to some arbitrary memory location and may cause a program to crash or behave badly.
Read More »Memory leak occurs when programmers create a memory in heap and forget to delete it.
Memory leaks are particularly serious issues for programs like daemons and servers which by definition never terminate.
Most of us have studied Computer Networks in a very abstract manner. In other words, not many of us know how the abstract concepts of layers and packets translate in real life networks such as the Internet. Therefore let us do an experiment and see whether these layers, packets etc. exist in any real network [...]
Read More »I’m sure that this post will be as interesting and informative to C virgins (i.e. beginners) as it will be to those who are well versed in C. So let me start with saying that extern keyword applies to C variables (data objects) and C functions.
Read More »What are these? Little and big endian are two ways of storing multibyte data-types ( int, float, etc). In little endian machines, last byte of binary representation of the multibyte data-type is stored first. On the other hand, in big endian machines, first byte of binary representation of the multibyte data-type is stored last.
Read More »