How to implement flags?

Answer Posted / sachin

enum Flag {Yes, No};

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

1748


Which format specifier is used for printing a pointer value?

583


Differentiate between realloc() and free().

600


Why do we use setw in c++?

648


Is it possible to get the source code back from binary file?

717






What is constructor c++?

671


What is malloc in c++?

559


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

838


What is rtti in c++?

629


What's the "software peter principleā€?

627


How do you clear a buffer in c++?

543


What is encapsulation in c++?

674


Can recursive program be written in C++?

635


How can virtual functions in c++ be implemented?

612


Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.

2097