Wednesday, May 11, 2022

Friend Functions in C++ Programming

 Friend Functions in C++ Programming




This Video Content  PDF Link :

Interrupts in Operating System

 Interrupts in Operating System



This Video Content PDF Link :


Data Types in C Programming

 Data Types in C Programming



This Video Content PDF Link :



Classes and Objects in C++ Programming

 Classes and Objects in C++ Programming


This Video Content Pdf Link : 


Inter process communication in Operating System

 Inter process communication in Operating System

Shared Memory

Message Passing

Signal

Message Queue

Sockets

Semaphore

Pipe



This Video Content Pdf Link : 
    


Basic Concepts of Object Oriented Programming in C++

Basic Concepts of Object Oriented Programming in C++


    OOPs support a clear structure of a Programs.

These include

1.Objects

2.Classes

3.Data Abstruction & Encapsulation

4.Inheritance

5.Polymorphism

6.Dynamic Binding

7.Message Passing 





    This Video Content Pdf Link : 
        



Inheritance in C++ Programming

 Inheritance in C++ Programming


     Inheritance - The mechanism of deriving a new class from an old one is called Inheritance or derivation.



    



This Video content pdf Link as : 


Tuesday, May 10, 2022

Check prime or Not in C programming

Write a C program to check whether a given number is 

prime or not 

What is Prime number ?

    A prime number is a positive integer that is divisible only by 1 and itself.

For Example , 5 ,7,11,17...etc

Program for prime or Not

#include<stdio.h>

#include<conio.h>

void main()

{

    int num,i,flag=0;

    printf("\n\t To Check Prime or Not ");

    printf("\n\t ** ***** ***** ** ***");

    printf("\n Input");

    printf("\n Enter a Positive integer : ");

    scanf("%d",&num);

    if(num==0||num==1)

        flag=1;

    for(i=2;i<=num/2;i++)

    {

        if(num%i==0)

        {

            flag=1;

            break;

        }

 }

if (flag==0)

    printf("\n %d is a Prime Number ",num);

else

    printf("\n %d is not a Prime Number ",num);

getch();

}


Output






Check Armstrong Number or Not in C programming


Check Armstrong Number of n Digits     


Hello friends ...welcome to learn today 

In this blog we will discuss about what is armstong number ?  And  How its works in C Programming ?

What is armstrong number ?

 The given digits is same as the power of digits is sum , that is called armstrong number.

for example ,

 the given digits is 407 ,is same as the (4*4*4)+(0*0*0)+(7*7*7)=(64)+(0)+(343)=407 this is called a armstrong number.

Suppose, the given digits is 234, is does not same as the 

(2*2*2)+(3*3*3)+(4*4*4)=(8)+(27)+(64)=99 


 Check Armstong Number or Not in C Programming

#include<stdio.h>

#include<conio.h>

void main()

{

    int num,rem,sum=0,temp;

    clrscr();

    printf("\n\t Check Armstrong Number or Not ");

    printf("\n\t ***** ********* ******* ** ***");

    printf("\n Input");

    printf("\n ^^^^");

    printf("\n Enter the Number : ");

    scanf("%d",&num);

    printf("\n Output");

    printf("\n ^^^^^^");

    temp=num;

    while(num>0)

    {

        rem=n%10;

        sum-sum+(rem*rem*rem);

        n=n/10;

}

if(temp==sum)

{

    printf("\n %d is an armstrong number ",temp);

else

    printf("\n %d is not an armstong number ",temp);

}

getch();

}

Output





Sunday, May 8, 2022

Sum of Digits in C Programming

Sum of Digits in C Programming

#include<stdio.h>

 #include<conio.h>

void main()

{

    int n,sum=0,r,i;

    printf("\n Sum Of Digits ");

    printf("\n ************ ");

    printf("\n Enter a Value : ");

    scanf("%d",&n);

    for(i=0;i<=n;i++)

    {

        r=n%10;

        sum=sum+r;

        n=n/10;

    }

    printf("\n Sum Value is : ",sum);

    getch();

}


Output



ERROR CONTROL IN DATA COMMUNICATION AND NETWORKS

ERROR CONTROL IN DATA COMMUNICATION AND NETWORKS VIDEO THIS VIDEO CONTENT PDF LINK :