What is the output of this program?
    #include <stdio.h>
    #include <ctype.h>
    int main ()
    {
        int i = 0;
        int cx = 0;
        char str[] = "Sook..., Beyond knowing!";
        while (str[i])
        {
            if (ispunct(str[i])) cx++;
                i++;
        }    
        printf ("%d\n", cx);
        return 0;
    }

Posted on by