Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

Program for factorial of a number using recursive function in C

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,...) mysql function

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

Executing a parameterised bat file in C#

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

Swap keys with their associated values in an array using PHP

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

How to print HTML code of any website using PHP

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

Split an array into given length of array

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 IN C

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

Program to Convert String into Uppercase

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 use DateDiff in SQL for Expiration

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 +

  • 217
How to split a string in C++?

// 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

1 45 320
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: