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

What is console in c language?

634


What is the Purpose of 'extern' keyword in a function declaration?

666


How can you be sure that a program follows the ANSI C standard?

1144


What is the use of a semicolon (;) at the end of every program statement?

793


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

634






What is the difference between malloc() and calloc() function in c language?

621


What is scope and lifetime of a variable in c?

588


What is c variable?

567


What is the meaning of c in c language?

615


What is the use of c language in real life?

545


Explain how do you determine a file’s attributes?

605


Where can I get an ansi-compatible lint?

656


Why cant I open a file by its explicit path?

607


string reverse using recursion

1827


What is the best organizational structure?

653