Thanks buddy !!!!!
A lot many times you would have used a Linux command with some arguments to it. Like : cp -r /home/user/Desktop/abc /home/abcrm -rf abcIn the...
In this article, we will discuss different implementations of sleep functions that had flaws to understand how sleep function evolved. Before...
We will discuss the concept of Macros. A Macro is a name given to a piece of code or to a value. Whenever the macro is used in the code, it...
Before we start with Non re-entrant Functions, Can you guess the problem with this piece of code : #include<stdio.h> #include<signal.h>...
Suppose a system call was blocked due to some reason (like waiting for a read of some data on terminal) and during this time a signal occurs. Do...
There are times, when sitting on your Linux box, working on a command line terminal, you suddenly feel a need of copying a file to/from a remote...
Signals are the interrupts. They are a way of providing asynchronous events. For example a user typing ctrl-c on terminal to stop a program. Most...
For problem '3', google how or rather in which order the function arguments are processed/passed when a function call is made.
Byte ordering in memory refers to the way in which the bytes corresponding to a certain value is stored in the memory. There are two ways in which...
I dunno why its not giving any error on windows but logically when we are about to call free(), we have incremented the address held at pointer...
Can you give it a try on Unix/Linux ??
Well, I am getting following output : 0 1 4 9 16 *** glibc detected *** ./1: free(): invalid pointer: 0x00000000021ee024 *** ======= Backtrace:...
Did you even try to execute it??
Its basically used as a dereference or a value-of operator. It is mostly applied to pointers to extract the value at the address held by pointer....
Ok, lets discuss. So, do you know '*' operator can be applied to which kind of variables?
In this article, I'll present some interesting 'C' problems for which I will not provide the answer. If you are not bale to solve any problem,...
A virtual function is used where we want to allow the derived class to replace the implementation of the same function in base class. The compiler...
We all have been using Functions since we stepped into programming. Numerous times we have called a function with some arguments to it. We all...
Yup not a good idea but the question was to change the entry point so that we do not have to keep main() in it. Is there a more elegant way other...
Separate names with a comma.