printf("enter the string: ");
printf("enter the first character to be searched and printed: ");
error at line 29 and 36
output should be like this
enter the string: i love cricket
enter the chcarcter:c
output is cricket
error on 29 :
it is a[k]!=32. this is a relational operator that means not equal to. != and == is a operator to check the equality.
error at line 10:
it is address of a character which scanf expects. so use &b because b is just a character.
try to use the codeblocks. because I hope there is curly-bracket problem. in codeblocks , it automatically puts the completing bracket.