Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
C Technical Scripter C

Hygienic Macros : An Introduction

We are all familiar with the working of macros in languages like C. There are certain situations in which macro expansions can lead to undesirable results because of ...
C C++ Technical Scripter

Implementation of a Falling Matrix

Since the dawn of computers, Hollywood has greatly demonstrated a Hacker or a Programmer as someone sitting on a computer typing random keys on computer which ultimat...
C++ Technical Scripter CPP

random header in C++ Set 1(Generators)

This header introduces random number generation facilities. This library allows to produce random numbers using combinations of generators and distributions. Generat...
C++ Technical Scripter CPP

random header Set 2 (Distributions)

Set 1 (Generators) Distributions I. Uniform : uniform_int_distribution: It produces random integer values i, which are uniformly distributed on the closed interva...
C C++ Technical Scripter

Modulus of two float or double numbers

Given two floating point numbers, find remainder. Examples: Input : a = 36.5, b = 5.0 Output : 1.5 Input : a = 9.7, b = 2.3 Output : 0.5 Recomm...
C C++ Technical Scripter

Precision of floating point numbers in C++ (floor(), ceil(), trunc(), round() and setprecision())

Decimal equivalent of 1/3 is 0.33333333333333…. An infinite length number would require infinite memory to store, and we typically have 4 or 8 bytes. Therefore...
C++ Searching Technical Scripter

Middle of three using minimum comparisons

Given three distinct numbers a, b and c find the number with a value in middle. Examples : Input : a = 20, b = 30, c = 40 Output : 30 Input : a = 12, n = 32, c = 11 ...
C# Java Technical Scripter

Java vs C#

C# is a general-purpose, modern and object-oriented programming language pronounced as “C sharp”. It was developed by Microsoft led by Anders Hejlsberg ...
C# Technical Scripter CSharp-OOP

Shallow Copy and Deep Copy in C#

In general, when we try to copy one object to another object, both the objects will share the same memory address. Normally, we use assignment operator, = , to copy t...
C# Technical Scripter CSharp-Arrays

C# Using foreach loop in arrays

C# language provides several techniques to read a collection of items. One of which is foreach loop. The foreach loop provides a simple, clean way to iterate through ...

Subscribe to Our Newsletter