// For a character array consisting of 0, 1 and 'x', find 101 numbers in the array. // A number is a 101 number if there exists some i and j such that the ith // character is 1, the (i+j)th character is 0 and the (i+2j)th character is 1. //Author:rahule@cse.iitk.ac.in #include int string_length(char *); //function to find the string length main() { char a[50]; int i,j,n; printf("\nEnter the array elements (0,1 or x) :\n"); scanf("%s",a); n=string_length(a); //calculating the string lenghth entered for(i=0;i