Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
C C++ C Basics

C/C++ Preprocessor directives Set 2

C/C++ Preprocessor directives basics Preprocessor directives: In almost every program we come across in C/C++, we see a few lines at the top of the program preceded b...
C++ cpp-file-handling cpp-input-output

I/O Redirection in C++

In C, we could use the function freopen() to redirect an existing FILE pointer to another stream. The prototype for freopen() is given as FILE * freopen ( const char...
C C++ cpp-namespaces

Inline namespaces and usage of the “using” directive inside namespaces

Prerequisite : Namespaces in C++ An inline namespace is a namespace that uses the optional keyword inline in its original-namespace-definition. // C++ progra...
CSS Web Technologies CSS-Properties

CSS animation-direction Property

The animation-direction property in CSS is used to define the direction of animation. The direction of animation should be forwards, backwards or in alternate cycles....
Java java-file-handling Java-I/O

Redirecting System.out.println() output to a file in Java

System.out.println()  is used mostly to print messages to the console. However very few of us are actually aware of  its working mechanism. System is a cla...
PHP Web Technologies PHP-function

PHP IntlChar charDirection() Function

The IntlChar::charDirection() function is an inbuilt function in PHP which is used to get the bidirectional category value for a code point. It returns the bidirectio...
Geometric Geometric

Direction of a Point from a Line Segment

Direction of given point P from a line segment simply means given the co-ordinates of a point P and line segment (say AB), and we have to determine the direction of p...
Queue Stack Tree

Level order traversal with direction change after every two levels

Given a binary tree, print the level order traversal in such a way that first two levels are printed from left to right, next two levels are printed from right to lef...
Graph BFS Graph

Bidirectional Search

Searching a graph is quite famous problem and have a lot of practical use. We have already discussed here how to search for a goal vertex starting from a source verte...
Graph graph-connectivity graph-cycle

Assign directions to edges so that the directed graph remains acyclic

Given a graph with both directed and undirected edges. It is given that the directed edges don’t form cycle. How to assign directions to undirected edges so t...

Subscribe to Our Newsletter