
Search In
What is Factorial ?
Factorial of a no. means multiplying below numbers. Factorial is denoted by “!” Exclamation mark
Eg:- 5! means :- 5 * 4 * 3 * 2 * 1 = 120
What is a Recursive function?
Definition:- A function which calls itself is called as
MAKE_SET(bits,str1,str2,...)
MAKE_SET function returns a set of values which are from string containing substrings separated by “,” characters, consisting of the strings that have the corresponding bit in bits set. str1 corresponds to bit 0, str2 to
In one of my recent projects, I had to execute a bat file which was expecting one argument before execution.
Content of bat file was like this :
"%~dp0phantomjs.exe" "%~dp0..\examples\rasterize.js" "%1" "%~dp0twingle.jpg"
If you Analise the above
This article demonstrates a PHP function which can be used for swapping of keys with values in an array. array_flip() is the function which accepts an array as parameter and exchange the keys with their associated values in an array. This function re
Hello Reader's if you want to get all of the HTML code of any website then you use the function as below:-
The first way is by using PHP in built function url fopen, and its code will go like this:-
$ShowHTML = file_get_contents('http://findnered.c
Hello friends,
Here I am explaining, if you want to split an array into given size element(length) of arrays then you can use array_chink() predefined function of php. array_chunk function chunks an array into arrays with size elements and may be th
Passing argument to a function by value is also know as call by value. This method of passing arguments to a function copies the original value of argument into the formal parameter of a function. In other words if we change parameter which are give
Using library function:
We can use toupper() library function present in "string.h" to convert string into uppercase.
#include <stdio.h>
#include <string.h>
int main()
{
char str[100];
printf("Enter a string to convert it to Upp
To check any link or any information or any message is expired or not we always made a column IsExpired in SQL Server.
While accessing this values we always this value is expired or not
SELECT N.ID, N.Message, N.Url, U.FirstName +
// A C++ program for splitting a string using strtok()
#include <stdio.h>
#include <string.h>
int main()
{
char str[] = "First-Demo-Example";
char *token = strtok(str, "-"); // Returns first token
while (token != NUL
