what is the use of ~ in c lang?????
Answers were Sorted based on User's Feedback
Agree with answer 2.
~ is used to find the 1's complement of any number
ex:
a = 0xCA (in hex) => 11001010 (in binary)
~a = 0x35 (in hex) => 00110101 (in binary)
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / bikash
~ is used to complement a hex value.
eg a = ~0x01;
//now a will have 0xFE;
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / guest
we r using this key word for equal and shine operator
| Is This Answer Correct ? | 1 Yes | 0 No |
Why main is not a keyword in c?
Why is extern used in c?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
differentiate built-in functions and user – defined functions.
what is the difference between #include<stdio.h> and #include "stdio.h" ?
What is pointers in c with example?
What should malloc() do?
Differentiate Source Codes from Object Codes
Is it better to bitshift a value than to multiply by 2?
What is c language and why we use it?
Write program to remove duplicate in an array?
Why does not c have an exponentiation operator?