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

How can you check to see whether a symbol is defined?

592


How can I manipulate individual bits?

608


What is cohesion and coupling in c?

591


Compare and contrast compilers from interpreters.

684


What is the size of structure in c?

702






Can true be a variable name in c?

559


the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

762


Tell me what are bitwise shift operators?

658


Why c is known as a mother language?

646


What is spaghetti programming?

670


Why is structure important for a child?

603


What is #include stdio h?

687


Ow can I insert or delete a line (or record) in the middle of a file?

576


What are the application of c?

650


Difference between MAC vs. IP Addressing

642