Find_sequence (unsigned int num, unsigned int pattern) returns the index of the first occurence the bit ‘pattern’ is found in num. e.g. the bits in num = 10010 and pattern = 1001 should return 1 because the pattern was found at index 1 in num.
Well I dont know how to implement it though. I tried different ways but it does not work....Any help will appreciated. Sorry if this question is simple. I just started learning bits thing.