Swapping of two numbers using Bit wise Operators in C language 00:59 by Let Us Code in C 0 Program: /* C Program for Swapping of two numbers using Bit wise Operators */ #include < stdio.h > void main( ) { int a, b; a = 10; b = 20; a = a ^ b; b = a ^ b; a = b ^ a; printf("\n a = %d\t b = %d", a, b); } Output: a = 20 b = 10 Share This: Fawitter Google+ Email ThisBlogThis!Share to XShare to Facebook Related Posts:C Program for Given Number is AMSTRONG or NOT Program: /* C Program to find given number is amstrong or not for N digit number*/ #include<stdi… Read MoreC Program Asked in TCS-1 Program: #include<stdio.h> #include<conio.h> int main( ) { int… Read MoreSwapping of two numbers using Bit wise Operators in C language Program: /* C Program for Swapping of two numbers using Bit wise Operators */ #include < s… Read MoreC Programs asked in TCS Program: #include<stdio.h> #include<conio.h> int main( ) { &nb… Read MoreC Program for Conversion of Celsius Temperature to Fahrenheit Temperature Objective: C Program for Conversion of temperature from Celsius to Fahrenheit Analysis: Input :… Read More
0 comments:
Post a Comment