Karthikeya Boyini has Published 2193 Articles

“register” keyword in C

karthikeya Boyini

karthikeya Boyini

Updated on 24-Jun-2020 10:59:13

10K+ Views

Register variables tell the compiler to store the variable in CPU register instead of memory. Frequently used variables are kept in registers and they have faster accessibility. We can never get the addresses of these variables. “register” keyword is used to declare the register variables.Scope − They are local to ... Read More

Pre-increment (or pre-decrement) in C

karthikeya Boyini

karthikeya Boyini

Updated on 24-Jun-2020 10:54:34

2K+ Views

Increment operators are used to increase the value by one while decrement works opposite increment. Decrement operator decreases the value by one.Here is the syntax of pre-increment operator in C language, ++variable_name;Here is the syntax of pre-decrement operator in C language, --variable_name;Let us see the difference between pre-increment and pre-decrement ... Read More

realpath_cache_size() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 24-Jun-2020 09:31:33

115 Views

The realpath_cache_size() function returns realpath cache size i.e. the amount of memory.Syntaxrealpath_cache_size()ParametersNAReturnThe realpath_cache_size() function returns the amount of memory realpath cache is using.Example Live DemoOutput362

parse_ini_string() function in PHP

karthikeya Boyini

karthikeya Boyini

Updated on 24-Jun-2020 09:25:58

170 Views

The parse_ini_string() function parses a configuration string. The function returns the settings as an associative array on success. It returns FALSE on failure.Syntaxparse_ini_string(file_path, process_sections)Parametersfile_path − The ini file to be parsed.process_sections − If set to TRUE, you will get a multidimensional array with section names and settings included.ReturnThe parse_ini_string() function ... Read More

C++ Program to Check Whether a Number is Palindrome or Not

karthikeya Boyini

karthikeya Boyini

Updated on 24-Jun-2020 07:57:21

3K+ Views

A palindrome number remains the same if its digits are reversed i.e its value does not change. A palindrome number can also be called symmetric. For example: The numbers 12321, 1551, 11 etc are palindromes as they do not change even if their digits are reversed.A program that checks if ... Read More

C++ Program to Find All Roots of a Quadratic Equation

karthikeya Boyini

karthikeya Boyini

Updated on 24-Jun-2020 07:47:19

8K+ Views

A quadratic equation is in the form ax2 + bx + c. The roots of the quadratic equation are given by the following formula −There are three cases −b2 < 4*a*c - The roots are not real i.e. they are complexb2 = 4*a*c - The roots are real and both ... Read More

C++ Program to Print Number Entered by User

karthikeya Boyini

karthikeya Boyini

Updated on 23-Jun-2020 16:36:19

5K+ Views

The objects “cin” and “cout” are used in C++ for input and output respectively. cin is an instance of the istream class and is attached to the standard input device such as the keyboard. cout is an instance of the ostream class and is connected to the standard output device ... Read More

C++ Program to find size of int, float, double and char in Your System

karthikeya Boyini

karthikeya Boyini

Updated on 23-Jun-2020 16:27:53

3K+ Views

Data Types in C++There are many data types in C++ but the most frequently used are int, float, double and char. Some details about these data types are as follows −int - This is used for integer data types which normally require 4 bytes of memory space.float - This is ... Read More

String slicing in Python to rotate a string

karthikeya Boyini

karthikeya Boyini

Updated on 23-Jun-2020 16:09:07

5K+ Views

A string is given, our task is to slicing the string into two way. One is clockwise and another anticlockwise.1. Left (Or anticlockwise) rotate the given string by d elements (where d pythonprogram Left Rotation: thonprogrampy Right Rotation: ampythonprogr

Python program to check if both halves of the string have same set of characters.

karthikeya Boyini

karthikeya Boyini

Updated on 23-Jun-2020 16:01:38

263 Views

Given a string, our task is to check if both halves of the string have the same set of characters or not. To solve this problem we first split the string from the middle, so we get two halves, now we check each halves having the same set of characters ... Read More

Advertisements