Posts

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);                                       ...

Hello World

This is a First Code of C Language  Hello World #include <stdio.h> int main () {     printf ( "Hello World" );     return 0 ; } Output :  Hello World What is C Programming Langauge? C  is a general-purpose programming language that is extremely popular, simple, and flexible to use. It is a structured programming language that is machine-independent and extensively used to write various applications, Operating Systems like Windows, and many other complex programs like Oracle database, Git, Python interpreter, and more. It is said that ‘C’ is a god’s programming language. One can say, C is a base for the programming. If you know ‘C,’ you can easily grasp the knowledge of the other programming languages that uses the concept of ‘C’

Subtraction of Two Number by using C Language

Subtractions   of   Two   Numbers   : #include <stdio.h> int main () {     int a, b, c;     printf ( "enter two number for substraction:" );     scanf ( " %d %d " , & a, & b);     c = a - b;     printf ( "substraction of two number id %d and %d is = %d " , a, b, c);     return 0 ; } 💢  Output  : enter two number for substraction:101 , 109 subtracti on of two number id 101 and 109 is = -8   Algorithm to Subtract Two Numbers Start . Start . Read  two numbers as  A  and  B . Calculate the  difference  of the two numbers:  Difference = A - B . Display  the value of  Difference . Stop 💢  Flowchart for Subtracting Two Numbers     +-------------------+    |    Start          |    +-------------------+           ...

Addition of two Number using c language code

Image
This is the addition of two number by using c language code // this is for addition of two number #include <stdio.h> int main () {     int a, b, c;     printf ( "enter two number for addition:" );     scanf ( " %d %d " , & a, & b);     c = a + b;     printf ( "addition of two number= %d " , c);     return 0 ; } Output: enter two number for addition:12+51 addition of two number = 63 ✍🏾  Algorithm to Add Two Number: Start . Read  two numbers as  A  and  B . Calculate the  sum  of the two numbers:  Sum = A + B . Display  the value of  Sum . Stop . ✍🏾  Flow chart for Adding Two Number: Adding of two number