String To Integer and Integer to String Conversion in C

In modern languages like Java, C# etc., there is a provision of function to handle String to Integer and Integer to Strin ... string[k] = n%10 +'0'; } You must add an end of line ‘’ character at the end of the converted string. Loading…

Fastest way of calculating Prime Number with less system overhead with C code.

A number is said to be a prime number if it is divisible only by 1 and the number itself. That is a prime number is divis ... (n%2 == 0) return 0; for(i = 3; i*i Loading... (adsbygoogle = window.adsbygoogle || []).push({});

Python Program to Find the Area of a Rectangle Using Classes

In this example, we will write a python program to find the area of a rectangle using class and objects. To better understa ... An instance of the class “Rectangle” is created as “obj” and the method is invoked to display the result.. Loading…

Python Program to Create a Class and Compute the Area and the Perimeter of the Circle

In this example, we will write a python program to find the area and perimeter of the circle using class and objects. To be ... . An instance of the class “Circle” is created as “obj” and the method is invoked to display the result. Loading…

Subtraction of two binary numbers using C

Basic Theory (adsbygoogle = window.adsbygoogle || []).push({}); Subtraction can be regarded as addition. For ex ... in Decimal: %d", diff); return 0; }   (adsbygoogle = window.adsbygoogle || []).push({}); Loading…

Addition of two binary numbers using C

Basic Theory (adsbygoogle = window.adsbygoogle || []).push({}); Loading… Addition of binary numbers is fa ... printf("Overflow"); } return 0; } Loading… (adsbygoogle = window.adsbygoogle || []).push({});

Python Program to Create a Class which Performs Basic Calculator Operations

In this example, we will write a python program to create a basic calculator using class and objects. To better understand ... ate through while loop and show menu for the user that takes values from 0 to 4, where 0 is for exit case. Loading…

Python Program to Find Hash of File

In this example, we will write a python program to find the hash of a file. Hash is used in the cryptography to encrypt the ... f the program is:- MD5: f6ff56b7e6ecf3ca935a76daeab08b73 SHA1: 208cc699c87f7d1cbcd175115e7c04eec8292d2f Loading…

Python program to convert miles to kilometers and vice versa

How to Convert Miles to Kilometers and Meters This is a python program to help you convert miles to kilometers and vice vers ... s information will help you plan your future trips and increase your chances of reaching the destinations that you desire.

C Code For Solving Modular Linear Equations

The Extended Euclid’s Algorithm solves the equation of the form \[ GCD(a, n) = d = ax + ny \] If we multiply the both s ... lo(ee.x * (b/ee.d), n); for (i = 0; i (adsbygoogle = window.adsbygoogle || []).push({});

Calculation of Modular Exponentiation in C

Modular Exponentiation takes the following form. \[A = B^C \text{ mod } D\] Efficient calculation of modular exponentiati ... { int a = 65, b = 17, n = 3233, d; d = modular_exponentiation(a, b, n); printf("Result = %d\n", d); return 0; }

Difference between exports and module.exports in Node.js

When you have large javascript file, you want to break that file into independent modules so that you can reuse each modul ... || []).push({}); exports = {}, module.exports = [funciton] This will return non-empty object. So this also works.

Business Intelligence (BI) implementation in Nepalese Telecommunications

This article aims at discovering the business intelligence technologies that can be applied to the telecommunication ind ... necessary. You can download the full article from here. (adsbygoogle = window.adsbygoogle || []).push({});

Fetch Data from MYSQL using Jquery Ajax

This is really an interesting article where I will show you how to fetch data from MySQL table using Jquery Ajax. If you ... is the code for this [lets say the file name as district.php] (adsbygoogle = window.adsbygoogle || []).push({});

C Multi-dimensional Arrays

You must learn the basic concepts of the array in order to understand the multidimensional arrays in detail. Learn about th ... 6                    8   Loading...

C Arrays & Function

In this tutorial, you will learn to pass arrays in C functions.  Through this tutorial, you will have knowledge about passi ...                   2 3                  4     Loading...

C Pointers And Functions

In this tutorial, you will learn about the use of pointers for calling and implementing functions. We can also name this pr ... t; } Output a= 10                b= 20 After swapping the result will become: a= 20               b= 10 Loading…

C Storage class

In this tutorial, you will learn about the storage class which is very exciting as it grants us to change the feature of var ... the best option for the condition when we will have to use the variable in all functions of the program. Loading...

C String Functions

In this tutorial, you will learn about manipulating strings. As C compiler supports a large set of string library functions. ... C program to print the reverse of the string C program to check whether a given string is palindrome or not Loading…

Structure and Pointer

In this tutorial, you will learn to access structures elements by using the structure pointer. As we have created the point ... ntered is 1550 The price entered is 200   (adsbygoogle = window.adsbygoogle || []).push({});   Loading…