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.
gahhon 13 Junior Poster
Recommended Answers
Jump to PostYou want single instruction ???
I dont think thr are any such instructions which can calculate number of occurances..But you want a program to calculate it
Jump to Post*sigh*
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> …
All 7 Replies
Shankye 36 Junior Poster
gahhon 13 Junior Poster
Shankye 36 Junior Poster
gahhon 13 Junior Poster
Shankye 36 Junior Poster
Narue 5,707 Bad Cop Team Colleague
vinitmittal2008 commented: Amazing!! +1
Shankye 36 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.