Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is a macro, and explain how do you use it?

1040


How will you write a code for accessing the length of an array without assigning it to another variable?

1024


Explain can static variables be declared in a header file?

1121


How is a null pointer different from a dangling pointer?

985


What is the significance of scope resolution operator?

1372


What is a program flowchart and how does it help in writing a program?

1107


What are runtime error?

1101


What is function prototype in c with example?

1026


List some of the dynamic data structures in C?

1211


Explain zero based addressing.

980


How do you use a 'Local Block'?

1139


Explain setjmp()?

1033


How many identifiers are there in c?

983


What is the total generic pointer type?

1125


What is getch c?

1263