Tamtrajnana - The tech blog

Trying to understand intricacies of Operating System and small things in C/C++ programming language & gcc. I write to learn

Wednesday, June 23, 2021

Function pointers vs Normal calls

›
I was looking for mechanism to have zero overhead logging in my personal project. The first approach that struck my brain was creating a dum...
Thursday, August 8, 2019

free()ing an invalid pointer

›
One of my friend asked this question. What happens if you free() an invalid pointer location? i.e. the pointer which was not returned by ma...
1 comment:
Sunday, May 19, 2019

How does is_same works?

›
Sometimes I turn  inquisitive towards the type traits of modern c++. A more dig into glibc unfolds the mystery behind the implementation. S...
1 comment:
Thursday, October 11, 2018

A trivial note on Vector.erase()

›
Recently, I encountered a problem with Vector.erase() function. Consider the below code. #include <vector> #include <iostream...
Wednesday, September 19, 2018

The delete operator rant

›
I have seen many instances using below code (assuming older standard before nullptr ). if (myAllocatedObject != NULL) {     delete  myA...
Saturday, April 14, 2018

C++ : Tampering with the private class variables

›
I have lot things to write in C++/OS/Network arena. I don't feel the urge to write unless clarity is gained over the subject. Thanks f...
Monday, October 10, 2016

A strange note on bash aliases

›
Today I encountered a strange scenario (rather common for most of programmers) while adding function in my .bashrc file. For confidentiali...
›
Home
View web version
Powered by Blogger.