Featured
-
No Featured Found!
Tags
Memory Leak detection Program
Hello!!
A Memory leak occurs when we did not manage the memory allocation in the programs, it is the type of resource leak. Memory leak reduces the performance because it reduces the memory of the system. It is common in those l...
C Program to Display the IP Address of the System
Hello Everyone,
In this blog, We are going to know that how to display the ip address of the system using c programming. We can find the IP address, Gateway, Subnet Mask by typing ipconfig in command prompt. Here we are going to...
Arithmetic operations by using only one variable
Hey Guys,
Today we are going to perform Arithmetic operations by using only one variable.
It means, if we have define a single variable for loops or anything else then it must be used for all the operation.
So, here, your only friend is ...
Program in c to print 1 to 100 without using loop
in this program of C language we are not using the any king of loop,we are printing the numbers without loop.
#include
int main(){
int num = 1;
print(num); //it is a function which is calling the value of pri...
How to convert string to int without using library functions in c
here we are converting string values to the integer without using library functions.
#include
int stringToInt(char[] );
int main(){
char str[10];
int intValue;
printf("Enter any integer as a string:...
A program to find out NCR factor of given number in C language
ncr means : combination in terms of mathematics.We have to find out the perfect combination of given values.
In the mathematics nCr has defined as nCr = n! /((n-r)! * r!)
#include
int main(){
int n,r,ncr;
printf("Ente...
program to find out generic root of any number on C language
generic root means:
in this we do addition of a given number until reached a single digit after addition . For example:
Generic root of 784: 7 + 8 + 4 = 19 since 19 is a two digit numbers so 1 + 9 = 10.then again add 1 +0=1
So, ge...
PROGRAM TO SUBTRACT TWO NUMBER WITHOUT USING SUBTRACTION OPERATOR
A program on C language without using subtraction operator is done by taking the numbers 2's complement and then add it to another number.
#include<stdio.h>
int main(){
int a,b;
int sum;
int complement=0;
prin...
A program to count the different types of characters in given string
counting of different characters is done by using strlen(i.e string length) and arr denotes array. We use for loop to pass the ASCII code of alphabets from a to z.
#include<stdio.h>
#include<string.h>
void main()
...
For Loop in C
For Loop: allow us to efficiently write a loop that needs to be executed specific number of times.
Syntax:
for(init statement; test expression; increment)
{
code(s) to be executed;
}
The init statement allow us to
initia...
File handling operation in c language
File handling in C
In C programming language we use a structure pointer of file type for declaring a file.
Syntax:-
FILE *fp;
The fopen() function is used to create a new file or to open existing file.
Syntax :
*fp = FILE *fo...
Arrays in C
An array is a homogeneous collection of data. An array is a container that stores a fixed number of values of same type. The length of array is specified when we create an array. Once created, its legth is fixed. We can think of array as a struct...
Command line argument
Command Line Argument
1. Command line argument is a way of supplying parameter to the program whenever it is invoked.
In command line argument when user call main method it is called by two arguments.The first is the number of command-line ar...
Recursion in c
In C programming language when a function calls itself over and over again , that function is called recursive function .The process of function calling itself repeatedly is known as recursion .
Recursion is supported by C programming languag...
union in C
A union is a special data type available in C that allows to store different data types in the same memory location just like structures in C.
Union uses a single shared memory location which is equal to the size of its largest data member. It...
Diiference Between C and C++
Basic difference between C and C++:
C
C++
C follow procedural programming language
C++ follow procedural and object oriented
...
Implement Quick Sort using C
Quick Sort Algorithm:- Quick sort is the most famous sorting algorithm. It is the external sorting technique that is based on divide and conquer strategy. The Complexity of this algorithm is following:
Best Case:- O(n log n)
Average Case:- O...
Implement Bubble Sort Using C
Bubble Sort:- Bubble Sort is the one of most popular Sorting Algorithm that is used to sort the array of n size. The Worst case and Average Case Complexity of Bubble Sort is O(n)^2. The Below Code will show you how to implement the bubble sort to...
Implement Binary Search Using C
Binary Search:- The Binary Search is one of the most important searching technique in Searching Algorithm. The one of property of this searching algorithm is, all the elements are in sorted order in array. The worst case and average case complexi...
Implement Doubly LinkList Using C
Doubly Linklist:- In Singly Linklist we have to move only in forward direction. we don't move in backward direction in linklist but Using Doubly Linklist we can iterate in both forward and backward direction. The Below code will shown you how to...
Sorting In Linklist
Sorting inside Linklist:- This Blog will show you, how to create a sorted linklist.
By using that can achieve the Sorting inside our Linklist. The Element will Enter inside Linklist in Sorted Manne.
#include<stdio.h>
#include<conio...
Insertion in Linklist at Different Places
Insertion in Linklist:- The Insertion of Element in Singly linklist at different places like: insertion at beginning, last and middle in the linklist. In below code I will show you how to insert the element in linklist at beginning, middle and la...
Implementation of Singly Linklist in C
Singly Linklist:- Hii Friends, The Below code will show you how we can create singly Linklist in Data Structure using C. we can simply create the singly linklist using the pointers and malloc function to insert and delete element dynamically.
...
Implement Queue Using Dynamic LinkList
Queue using Dynamic LinkList:-The Below code can shown you how to implement Queue using dynamic linklist in data structure using C. We can insert the node dynamically and the Linklist works on principal First-In-First-Out(FIFO). The Element can s...
Implementation of Insertion Sort in C
Insertion Sort:- The Insertion sort is used to sort an array. The array can be sorted in each round means, In each Iteration of an array the element can be find in sorted.
Steps:-
1: The second element of array compared with the elements w...