Samual Sam has Published 2492 Articles

Variables and Keywords in C

Samual Sam

Samual Sam

Updated on 24-Jun-2020 10:52:39

10K+ Views

VariablesIn C language, variables are the storage place where some form of data is stored. Different variables require different amount of memory on which a set of operations is applied.A variable name cannot start with a number. It can consist of alphabets, number, underscore “_”.Here is the syntax of declaring ... Read More

realpath_cache_get() function in PHP

Samual Sam

Samual Sam

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

69 Views

The realpath_cache_get() function returns realpath cache entries. It returns an array of realpath cache entries.Syntaxrealpath_cache_get()ParametersNAReturnThe realpath_cache_get() function returns an array of realpath cache entries.Example Live DemoOutputArray ( [/home] => Array ( [key] => 4353355791257440477 [is_dir] => 1 [realpath] => /home [expires] => 1538630044 ) [/home/cg/root] => Array ( [key] => ... Read More

glob() function in PHP

Samual Sam

Samual Sam

Updated on 24-Jun-2020 08:57:19

2K+ Views

The glob() function returns an array of filenames or directories matching a specified pattern. The glob() function returns.An array containing the matched files/directories, Returns an empty array if no file is matched, FALSE on error.Syntaxglob(pattern, flags)Parameterspattern − The pattern to search for.flags − The following are the flags:GLOB_MARK - Adds ... Read More

GSM Architecture

Samual Sam

Samual Sam

Updated on 24-Jun-2020 08:33:50

1K+ Views

Global System for Mobile communication (GSM) architecture comprises of the following components −Mobile Station : The mobile station is the mobile phone, which comprises of the mobile handset and SIM card. The mobile handset comprises of the transceiver, the display and its processor. SIM stands for SubscriberIdentity Module. It is ... Read More

C++ Program to Find the Length of a String

Samual Sam

Samual Sam

Updated on 24-Jun-2020 08:20:42

2K+ Views

A string is a one dimensional character array that is terminated by a null character. The length of a string is the number of characters in the string before the null character.For example.char str[] = “The sky is blue”; Number of characters in the above string = 15A program to ... Read More

C++ Program to Store Information of a Student in a Structure

Samual Sam

Samual Sam

Updated on 24-Jun-2020 08:18:52

5K+ Views

A structure is a collection of items of different data types. It is very useful in creating complex data structures with different data type records. A structure is defined with the struct keyword.An example of a structure is as follows.struct employee {    int empID;    char name[50];    float ... Read More

C++ Program to convert Octal Number to Decimal and vice-versa

Samual Sam

Samual Sam

Updated on 24-Jun-2020 08:17:03

497 Views

In a computer system, the octal number is expressed in the octal numeral system while the decimal number is in the decimal numeral system. The octal number is in base 8 while the decimal number is in base 10.Examples of decimal numbers and their corresponding octal numbers are as follows.Decimal ... Read More

C++ Program to Concatenate Two Strings

Samual Sam

Samual Sam

Updated on 24-Jun-2020 08:14:20

826 Views

A string is a one dimensional character array that is terminated by a null character. Concatenation of two strings is the joining of them to form a new string. For example.String 1: Mangoes are String 2: tasty Concatenation of 2 strings: Mangoes are tastyA program to concatenate two strings is ... Read More

C++ Program to Display Prime Numbers Between Two Intervals

Samual Sam

Samual Sam

Updated on 24-Jun-2020 08:12:35

398 Views

A prime number is a whole number that is greater than one and the only factors of a prime number should be one and itself. Some of the first prime numbers are 2, 3, 5, 7, 11, 13 ,17 etc.There can be many prime numbers between two intervals. For example, ... Read More

C++ Program to Display Armstrong Number Between Two Intervals

Samual Sam

Samual Sam

Updated on 24-Jun-2020 08:10:26

2K+ Views

An Armstrong Number is a number where the sum of the digits raised to the power of total number of digits is equal to the number.Some examples of Armstrong numbers are as follows −3 = 3^1 153 = 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = ... Read More

Advertisements