fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. char a[] = "house no : 123@ cbe";
  6. int count=0,b=0;
  7. b = sizeof(a);
  8. printf("%d",b);
  9. printf("%c",a[0]);
  10. printf("%c",a[1]);
  11. for(int i=0; i<= b; i++)
  12. {
  13. if((a[i] > 64 && a[i] < 91) || (a[i] > 96 && a[i] < 123) ||
  14. (a[i] > 47 && a[i] < 58))
  15. {
  16. count++;
  17. }
  18. }
  19. printf("%d", count);
  20.  
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
20ho13