#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; }
Not registered? Create an account
Forgot Password?
Already a registered user? Login