Question
main(){
char not;
not=!2;
printf("%d",not);
}

Answers

Answer:
0
Explanation:
! is a logical operator. In C the value 0 is considered to be the boolean value FALSE, and any non-zero value is considered to be the boolean value TRUE. Here 2 is a non-zero value so TRUE. !TRUE is FALSE (0) so it prints 0.   Your Comment






Search
Can you Answer!!
  • Q How to comment javascript code?
  • Q What are the parameters used in silence compression?
  • Q Hibakusha is the name given to survivors of which 20th century tragedy?
  • Q What languages does the .NET Framework support?
  • Q When a Cuttlefish is described as a Moulluscs, it is at which level of classification?
  • Q What two hardware considerations should be au important part of the planning process for a windows server 2008 deployment
  • Q Between which was the battle of Dharmat fought?
  • Q When a plate slides over a parallel plate, what is the relationship between viscous force and the lubricant thickness ?
  • Q Which freedom fighter was known as ‘Kappalottiya Thamizhan'?
  • Q How do i have a background image that isn't tiled?
  • Q Explain what is a reference variable in C++?