i wanna ask is that any statement can calculate number of occurrence of each letter (A-Z) instead of using switch statement or if statement to compare.
Jump to Post
Okay, here's a better example. Instead of trying to cram letters into a smaller array, I've used an array that covers the whole range of the char type and then filter the output. It should be easier to follow:
#include <stdio.h> #include <ctype.h> #include <limits.h> int main(void) …
All 7 Replies
Be a part of the DaniWeb community