+ 2

what do we mean by (literal) in C++ ???

18th Jul 2017, 5:03 PM
RiGeL
RiGeL - avatar
2 odpowiedzi
+ 2
The actual (literal) value of the variable or constant For example-- int i =0; bool j = false; int k = 0; if(i == j) --> This will return true if(i === j) --> This will return false (Type is considered) if(i === k) --> This will return true
18th Jul 2017, 5:11 PM
S C
+ 1
@sam thanks
18th Jul 2017, 6:08 PM
RiGeL
RiGeL - avatar