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 |
State two uses of pointers in C?
what is the difference between #include<stdio.h> and #include "stdio.h" ?
What is wrong with this initialization?
What is the difference between strcpy() and memcpy() function in c programming?
How can this be legal c?
What is difference between function overloading and operator overloading?
What is c language and why we use it?
What is difference between structure and union in c programming?
Why preprocessor should come before source code?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Disadvantages of C language.
Explain can the sizeof operator be used to tell the size of an array passed to a function?