MeetCode
Home
Doubts
Why is my C function not returning the …
Solved
1
49
Ask Doubt
View All Doubts
Solvers Leaderboard
Tutorials
Quiz
All Tests
Leaderboard
My Tasks
User Login
Dark
Enable Notifications
Toggle navigation
Bitwise AND of two numbers
Java
Easy
6 views
Back to Questions
View Answer
0
Previous
No previous question
Next
Check odd using bit operator
Easy
N
Problem Description
Task: return a & b.
Input Format
Java method
Output Format
Return value
Constraints
Use bitwise operators.
Official Solution
static int andOp(int a,int b){return a & b;}
Please
login
to submit solutions and comments.
Solutions (0)
No solutions submitted yet. Be the first!
Discussion (0)
No comments yet. Start the discussion!
Prev
Next
Fullscreen Editor
0 lines • 0 chars
Esc close • Tab indent
No comments yet. Start the discussion!