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

Answer Posted / bikash

~ is used to complement a hex value.
eg a = ~0x01;
//now a will have 0xFE;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to reverse a given number in c language?

608


What is a stream in c programming?

582


What does void main () mean?

717


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

2364


Explain what is the benefit of using const for declaring constants?

604






How can I find out how much free space is available on disk?

620


What are the key features in c programming language?

602


How to set file pointer to beginning c?

654


What is file in c preprocessor?

643


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3240


What is an expression?

648


Hai what is the different types of versions and their differences

1480


How old is c programming language?

567


How do I copy files?

617


Where is c used?

641