We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C
- Arrays and Strings
- Digit Frequency
- Discussions
Digit Frequency
Digit Frequency
Sort by
recency
|
1176 Discussions
|
Please Login in order to post a comment
include
include
include
include
int main(void){ char* arr = (char*)malloc(1000*sizeof(char)); int *finalDigit = (int )calloc(1000, sizeof(int)); if (finalDigit == NULL) { printf("Memory allocation failed\n"); return 1; } scanf("%s", arr); int digit = (int *)malloc(1000*sizeof(int)); int len = strlen(arr), digitCount=0; for(int i = 0;i
int main() {
}
include
include
include
include
int main() {
}