Evaluate !(1&&1||1&&0)
a) Error
b) False
c) True
No Answer is Posted For this Question
Be the First to Post Answer
What are the advantages of inheritance in c++?
How do you flush std cout?
What is a class template?
What is the difference between function overloading and operator overloading?
What do you mean by const correctness?
Please explain class & object in c++?
What are the advantages of using a pointer?
Describe private, protected and public – the differences and give examples.
Why namespace is used in c++?
What is the difference between global variables and local variable
What is pointer to member?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.