Singly Linked List in C with Code and Explanation

Image
                        Singly LinkedList (SLL)   A Singly Linked List is a linear data structure where each element (called a node ) points to the next node in the sequence.  It is a dynamic structure , meaning it can grow or shrink in size during runtime .  Structure of a Node:  Each node contains: - Data : The value stored in the node. - Next : A pointer / reference to the next node in the list . There are Five operation in SLL: 1) Insert - Insert the element in our node like, insert(34);                                                                            insert(3);                                       ...

Division of Two Number in c language ?

        Let's Start the Coding for Division  

                                         

              
Code:


#include <stdio.h>
int main()
{
 /* division of two number*/
    int a, b, c;

    printf("enter two number for division:");

    scanf("%d %d", &a, &b);

    c = a / b;

    printf("Division of two number is %d Divide %d = %d ", a, b, c);

    return 0;
}

Output:

enter two number for division:4
2

Division of two number is 4 Divide 2 = 2

Click here , For more coding practice:

Comments

Popular posts from this blog

Selection sort (code & Algorithm)

Multiplication of two number by using C Programs

Addition of two Number using c language code