Queue Implementation Using Array & Linked List in C
This is the C Program to implement queue using array and linked list in c A queue is an example of a linear data structure, or more abstractly a sequential collection. Queues provide services...
This is the C Program to implement queue using array and linked list in c A queue is an example of a linear data structure, or more abstractly a sequential collection. Queues provide services...
“Pythagorean triples” are integer solutions to the Pythagorean Theorem, a^2 + b^2 = c^2. #include #include main() { int s1,s2,hyp,ptriple=0; printf(” Side1 —- side2 —- hypotenusn”); for(s1=0;s1
This is the Java program to find the next prime NextPrime[n] gives the next prime above n import java.io.*; class nxtprm { public static void main(String[] args) { int n=0,j,flag=0,i=0; System.out.println(“Enter the Limit”); DataInputStream...
This is the C program to implement number system conversion,it converts 1.Decimal to Hexadecimal 2.Hexadecimal to Decimal #include #include #include main() { int ch; printf(“Choose any option 1.Decimal to Hexadecimal 2.Hexadecimal to Decimaln”); scanf(“%d”,&ch);...
This is the C Program which implements Stack using a linked list In computer science, a stack is a particular kind of abstract data type or collection in which the principal (or only) operations...
This is the C Program to find lcm of two numbers LCM=Product of two Numbers/GCD In arithmetic and number theory, the least common multiple (also called the lowest common multiple or smallest common multiple)...
This is the C Program to find nCr and nPr given n and r nPr(n, r) The number of possibilities for choosing an ordered set of r objects (a permutation) from a total of...
The mode is the value that appears most often in a set of data. The mode of a discrete probability distribution is the value x at which its probability mass function takes its maximum...
This is the C program to perform matrix operations such as addition,division and inverse #include int mat1[10][10],mat2[10][10],i,j,k,row1,row2,col1,col2,res[10][10]; char ch; main() { printf(“nChoose any Optionn1.Matrix-Additionn2.Matrix-Multiplicationn3.Matrix-Transposen”); scanf(“%c”,&ch); switch(ch) { case ‘1’:matadd(); break; case ‘2’:matmul(); break; case...
This is the C Program to find the determinant of a matrix In linear algebra, the determinant is a value associated with a square matrix. It can be computed from the entries of the...
Recent Comments