Contact: aviboots(AT)netvision.net.il
40,836 questions
53,240 answers
573 users
#include <stdio.h> #include <string.h> int main() { char str[] = "#c#"; if (str[0] == '#' && str[strlen(str) - 1] == '#') { puts("yes"); } else { puts("no"); } } /* run: yes */