+ 3
Declaring specific numbers
How do you make a digit to show specific function. For example the first digit indicates whether you are male(1) ow female(2) and second digit shows whether you are black(>2)or colored(<=2)
1 Answer
+ 2
What you just said is also known as bitset in which we use each bit to represent some binary data and then set that bit if it true
Like for male we can turn first bit on and for female we can off that bit
Similarly we can do this for color
So i recommend to study bitset
Hot today
Python — File Handling
2 Votes
Help me
0 Votes
What’s wrong?
2 Votes
Question is write a c program to print prime numbers up to n and print the largest number in array.
1 Votes
Achievements on Sololearn
1 Votes
How to draw in the console?
0 Votes