![]() |
Re: What does !! do?
On 1/23/2013 4:24 PM, Bint wrote:
> I haven't seen this syntax before. What does "!!" do in C++? > > As in this statement > > int t = !!(x & size); !! converts to bool. You can see many uses with WIN32 API that has type BOOL that is really int and can have all kind of values. !! makes sure those decay to true/false (1/0). |
| All times are GMT. The time now is 02:39 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.