Skip to content
Well, we assume that you know what does it mean by pointer in C. So how do we create a pointer to an integer in… Read More
Asked by Tanuj Here is the standard prototype of printf function in C. int printf(const char *format, ...); The format string is composed of zero… Read More
Asked by Varun Bhatia. Question: Write a code for implementation of doubly linked list with use of single pointer in each node. Solution: This question… Read More
You are given a Double Link List with one pointer of each node pointing to the next node just like in a single link list.… Read More
At the first look, it seems that writing a C macro which prints its argument is child’s play. Following program should work i.e. it should… Read More
Write an efficient program to count number of 1s in binary representation of an integer. Examples : Input : n = 6 Output : 2… Read More
Write an efficient program to count number of 1s in binary representation of an integer. Examples : Input : n = 6 Output : 2… Read More
Write an efficient program to count number of 1s in binary representation of an integer. Examples : Input : n = 6 Output : 2… Read More
Write an efficient program to count number of 1s in binary representation of an integer. Examples : Input : n = 6 Output : 2… Read More
Write an efficient program to count number of 1s in binary representation of an integer. Examples : Input : n = 6 Output : 2… Read More
  Write an efficient program to count the number of 1s in the binary representation of an integer. Examples :  Input : n = 6… Read More
Asked by Varun Bhatia. Question: Write a recursive function treeToList(Node root) that takes an ordered binary tree and rearranges the internal pointers to make a… Read More
  Given a singly linked list of characters, write a function that returns true if the given list is a palindrome, else false. Recommended: Please… Read More
The Function prototype serves the following purposes – 1) It tells the return type of the data that the function will return. 2) It tells… Read More