#include <stdio.h>
#include <ctype.h>
 
unsigned foo(char* src)
{
    unsigned total = 0;
    for (unsigned idx = 0; *src; src++)
        total += (++idx & 1) & isdigit(*src);
    return total;
}
int main()
{
    char symbols[] = "lkdrjvf9ei48r4hjrfwh74h827h34r0239r34jt93o84rtj";
        printf("Digits on even places found=%u", foo(symbols)); // здесь должен быть ответ, но он всегда ноль
    return 0;
}