Results 1 to 5 of 5

Thread: Use of Bitwise Logical Operators : C

  1. #1
    Join Date
    Dec 2009
    Posts
    31

    Use of Bitwise Logical Operators : C

    Hi, how are you ? I can have the good knowledge of the C language. I also did the project on the C language recently. But I do not know about the Bitwise Logical Operators in C language. So, I would like to know about the Bitwise Logical Operators in C language. I also would like to know about the what can be the use of the Bitwise Logical Operators in C language, how can I implement Bitwise Logical Operators in the C language coding. If anyone has the idea about the Bitwise Logical Operators in C then reply me.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Use of Bitwise Logical Operators : C

    Hello, I am surprise that you do not know anything about the Bitwise Logical Operators of C language. The Bitwise Logical Operators can be operate on the Binary numerals or two or one bit patterns, In C programming. In older days, the microprocessors can be using the Bitwise Logical Operators to perform the Subtraction, Addition, Multiplication and Division operations. These operations can be faster more faster than the Division operators and Multiplication operators and quite faster than the subtraction operator and addition operator.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Use of Bitwise Logical Operators : C

    I think that there can be three Bitwise Logical Operators that can manipulate the integer data type' s individual bit's. The name of the Bitwise Logical Operators can be same as the Logical operators but there can be the diference in their operation that can performing. The following can be Bitwise logical operators :
    Code:
    Operator  Description
    ^ 	    Exclusive OR
    | 	    Inclusive OR
    & 	    AND

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Program : Use of Bitwise Logical Operators : C

    From the following code of lines you can understood the Use of Bitwise Logical Operators in C language :
    Code:
    #include<stdio.h>
     main()
     {
       char d1,d2,d3;
       printf("enter value for d1 and d2");
       scanf("%c,%c",&d1,&d2);
       d3 = d1 & d2; 
       printf("\n d1 & d2 = %c",d3);
       d3 = d1 | d2; 
       printf("\n d1 | d2 = %c",d3);
       d3 = d1 ^ d2; 
       printf("\n i.e. d1 ^ d2 = %c",d3);
       d3 = ~d1; 
       printf("\n compliment  of  d1 = %c",d3);
       d3 =  d1<<2;
       printf("\n left shift by 2 bits d1 << 2 = %c",d3);
       d3 =  d1>>2;
       printf("\n right shift by 2 bits d1 >> 2 = %c",d3);
     }

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Bitwise Logical Operators

    According to my knowledge about the Bitwise Logical Operators, To manipulate the data at the level of bit C language can provide you the special operators that can be called as the Bitwise Logical Operators. These Bitwise Logical Operators can operates on the each of the data bit. The Bitwise Logical Operators can be used for shifting the bits to left or right and for testing the bits. These Bitwise Logical Operators can not be work on the double or float data type.

Similar Threads

  1. Logical drive disappeared
    By Chakrika in forum Hardware Peripherals
    Replies: 4
    Last Post: 25-01-2011, 02:06 PM
  2. How to use Comparison and Logical Operators in JavaScript?
    By Beter 2 Burn Out in forum Software Development
    Replies: 5
    Last Post: 30-01-2010, 07:45 PM
  3. Bitwise Concatenation In Int
    By Aakarshan.d in forum Software Development
    Replies: 5
    Last Post: 25-01-2010, 02:41 PM
  4. Bitwise logical operators in Java
    By beelow in forum Software Development
    Replies: 3
    Last Post: 20-11-2009, 01:25 PM
  5. Memory allocation optimized bitwise
    By Ricky58 in forum Software Development
    Replies: 3
    Last Post: 07-05-2009, 10:53 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,490,209.66464 seconds with 17 queries