Arnab Chakraborty has Published 4452 Articles

C++ Program to Convert int Type Variables to long

Arnab Chakraborty

Arnab Chakraborty

Updated on 19-Oct-2022 11:01:52

7K+ Views

C++ is a statically typed language, and because of that all of its variables require the datatype to be declared beforehand. The datatypes are used to represent which type of value is contained inside a variable. In C++, the variables to contain numerical values are int, long, float, and double. ... Read More

C++ Program to Convert long Type Variables to int

Arnab Chakraborty

Arnab Chakraborty

Updated on 19-Oct-2022 11:00:15

4K+ Views

C++ has support for various different datatypes to accommodate the different representations and sizes of data. The datatypes that can be used to represent numerical values in C++ are int, long, float, and double. int and long are used to represent integer values, whereas float and double are used to ... Read More

C++ Program to Check if a String is Numeric

Arnab Chakraborty

Arnab Chakraborty

Updated on 19-Oct-2022 10:58:28

9K+ Views

It can be quite helpful to use strings or characters while tackling logical programming difficulties. Characters in strings are 1-byte data types that can store symbols from ASCII values. Strings are collections of characters. The symbols could be special characters, numerals from the numeric system, or letters from the English ... Read More

C++ Program to Check Whether a Character is Alphabet or Not

Arnab Chakraborty

Arnab Chakraborty

Updated on 19-Oct-2022 10:45:26

3K+ Views

Using strings or characters is sometimes very useful while solving some logical programming problems. Strings are a collection of characters and characters are 1-byte datatype to hold symbols from ASCII values. The symbols can be letters from English alphabets, numeric digits, or special characters. In this article, we shall learn ... Read More

C++ Program to Check Whether a Number is Positive or Negative

Arnab Chakraborty

Arnab Chakraborty

Updated on 19-Oct-2022 10:44:04

3K+ Views

In modern programming languages we work with signed numbers and unsigned numbers also. For signed numbers the numbers can be positive or negative or zero. To represent negative numbers, the systems store the numbers in 2’s complement method. In this article we shall discuss how to determine a given number ... Read More

C++ Program to convert the Binary number to Gray code using recursion

Arnab Chakraborty

Arnab Chakraborty

Updated on 19-Oct-2022 10:42:21

565 Views

Gray codes or reflected binary codes are a special type of binary representation of numbers in which two successive values differ in only one bit. For example, the binary equivalent of 1 and 2 are 01 and 10, here two bits are changing. But in gray code, the 1 is ... Read More

C++ Program to create a function with arguments and a return value

Arnab Chakraborty

Arnab Chakraborty

Updated on 19-Oct-2022 09:26:23

3K+ Views

Any programming language that uses functions has code that is simpler, more modular, and simpler to change while being debugged. Functions are a remarkably beneficial component in a modular piece of code. A function's ability to accept arguments and output results. It is not necessarily necessary for a function to ... Read More

C++ Program to create a function with arguments but without a return value

Arnab Chakraborty

Arnab Chakraborty

Updated on 19-Oct-2022 09:24:05

1K+ Views

Functions in functional programming are used to create modular codes. We construct submodules in many applications to make our code simple to write, simple to debug, and also efficient by avoiding writing needless code repeatedly. Functions have a role in achieving these traits. Functions frequently take arguments and produce a ... Read More

C++ Program to create a function without argument and without a return value

Arnab Chakraborty

Arnab Chakraborty

Updated on 19-Oct-2022 09:22:42

4K+ Views

Functions in programming languages are used to make codes modular. In many applications, we create sub-modules to make our code easy to write, easy to debug, and also optimized by rejecting unnecessary code again and again. To achieve these features, functions come into the picture. In many cases, functions take ... Read More

C++ Program to Find the Product of Two Numbers Using Recursion

Arnab Chakraborty

Arnab Chakraborty

Updated on 19-Oct-2022 09:19:42

2K+ Views

Recursion is a technique where we call a function from the same function itself. There must be some base or terminating condition to end the recursive call. Recursive procedures are very much helpful to perform complex iterative solution with fewer codes and easier solution approach through sub-operation finding. In this ... Read More

Advertisements