Find the remainder when N is divided by 4 using Bitwise AND operator | C # implementation to find N modulo 4 using Bitwise AND operator ; Driver code ; Function to find the remainder ; Bitwise AND with 3 ; return x
using System ; class GFG { public static void Main ( ) { int N = 43 ; int ans = findRemainder ( N ) ; Console . Write ( ans ) ; } public static int findRemainder ( int n ) { int x = n & 3 ; return x ; } } is by