Swap Using Bitwise Operator In C Programming Tamil


#include<stdio.h>
#include<conio.h>
void main()
{
    int a,b;
    clrscr();
    printf("\nEnter the value of a ");
    scanf("%d",&a);
    printf("\nEnter the value of b:");
    scanf("%d",&b);
    a=a^b;
    b=a^b;
    a=a^b;
    printf("\nvalue of a : %d",a);
    printf("\nvalue of b : %d",b);
    getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming