what is the use of ~ in c lang?????

Answer Posted / c.p.senthil

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which are low level languages?

619


What is a scope resolution operator in c?

739


Why we not create function inside function.

1740


What happens if header file is included twice?

643


What is the modulus operator?

726






How do I create a directory? How do I remove a directory (and its contents)?

598


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

760


Stimulate calculator using Switch-case-default statement for two numbers

2438


How do you write a program which produces its own source code as output?

599


What is the difference between c &c++?

639


What is anagram in c?

510


Can we access the array using a pointer in c language?

554


please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics

2854


What is the use of pragma in embedded c?

583


Tell us the use of fflush() function in c language?

630