What does exclamation mark mean c#?



What does exclamation mark mean c#?..

Answer / Vijendra Pal

In C#, the exclamation mark (!) is a logical NOT operator. It returns the opposite boolean value of its operand. For example: nn```nbool b = true;nb = !b;nConsole.WriteLine(b); // outputs falsen```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Does c# support #define for defining global constants?

1 Answers  


What is an assembly qualified name? Is it a filename? How is it different?

1 Answers  


can you tell me what are the steps should follow to do delay signing.

1 Answers   HCL,


Explain About Virtual functions and their use.

1 Answers  


Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?

1 Answers  


What is inheritance in csharp?

1 Answers  


I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?

1 Answers  


Does c# support try-catch-finally blocks?

1 Answers  


What is difference between tostring() vs convert.tostring() vs (string) cast

1 Answers  


What is a method c#?

1 Answers  


How?s method overriding different from overloading?

2 Answers   Visual Soft,


write program in C# for palindrome? (aug 2009) write program in C3 for generating below output?(aug 2009) # # # # # # # # # #

4 Answers   TCS,


Categories