JavaScript Programming
JavaScript > Code Examples
'accept' Property
C Code perform functions of a Calculator -
C Programing code to perform functions of a calculator: factorial, addition, subtraction, multiplication, division, squares. Sum of the input numbers. The difference between the
Implement Two Stacks using Single Array -
C Programming code implements two Stacks using a Single Array & Check for Overflow & Underflow. A Stack is a linear data structure in which a data item is inserted and deleted...
Copy one String into Other without library -
Scan a string from "left to right", character by character. In each iteration "copy a character" to a new String variable. As soon as source or original string ends, the process of the coping
Convert Binary Tree into Singly Linked List -
C program converts a binary tree into a singly Linked List by Breadth first search algorithm. We use this algorithm for Traversing Level by Level. Structure type to point to the nodes of
Finds First & Last Occurrence of Character -
Take a string and a character as input. Store it in the array "str[]" & variable key respectively. Using for loop search for the variable key. If it is found then increment the variable count. If
C program code to set nth bit of a number -
We use bitwise OR | operator to set any bit of a number. C Bitwise OR operator evaluate each bit of the resultant value to 1 if any of the operand corresponding bit is 1. Input the
Checks for Balanced Paranthesis by Stacks -
Program sample, using a stack data strucure, computing whether the given "Parantheses" expression is 'valid' or not by check whether each parentheses is closed and nested in the
Finds Factorial of Number using Recursion -
This c program prompts user for entering any integer, finds the Factorial of input number & displays the output on screen. Use a recursive user defined function to perform the task. We