The idea of this article is to introduce C standard.
What to do when a C program produces different results in two different compilers?
For example, consider the fo...
Share
C is a middle-level programming language developed by Dennis Ritchie during the early 1970s while working at AT&T Bell Labs in the USA. The objective of its devel...
Share
Give a = 12 and b = 36 write a C function/macro that returns 3612 without using arithmetic, strings and predefined functions.
We strongly recommend you to minimize y...
Share
Below are some interesting facts about C programming:
1) The case labels of a switch statement can occur inside if-else statements.
#include <stdio.h> ...
Share
Object oriented programming – As the name suggests uses objects in programming. Object oriented programming aims to implement real world entities like inherit...
Share
Assign value by a pair of {} to a container
// Lots of programmers write code 
// like this one:
pair<int, int> p = make_pair(3, 4);
 &...
Share
What is socket programming?
Socket programming is a way of connecting two nodes on a network to communicate with each other. One socket(node) listens on a particular ...
Share
getchar_unlocked() is similar to getchar() with the exception that it is not thread safe. Below is an example code.
// A simple C program to demonstrate
/...
Share
First of all you need to know about Template, Macros and Vectors before moving on the next phase!
Templates are the foundation of generic programming, which involve ...
Share
Given four integers ‘a’, ‘b’, ‘y’ and ‘x’, where ‘x’ can only be either zero or one. Your task i...
Share