How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask Ansh P. Your Own Question
Ansh P.
Ansh P., Computer Software Specialist
Category: Programming
Satisfied Customers: 8148
Experience:  Professional software developer working as a systems engineer in top multi-national company.
Type Your Programming Question Here...
Ansh P. is online now
A new question is answered every 9 seconds

Write a procedure named Get_frequencies that constructs a

Customer Question

Write a procedure named Get_frequencies that constructs
a character frequency table. Input to the procedure should be a
pointer to a string, and a pointer to an array of 256 doublewords.
Each array position is indexed by its corresponding ASCII code. When
the procedure returns, each entry in the array contains a count of how
many times that character occurred in the string. Include the source code only.
Submitted: 8 years ago.
Category: Programming
Expert:  Ansh P. replied 8 years ago.

This is the program mentioned:


#include "stdio.h"
#include "conio.h"
#include "string.h"
void Get_frequencies(char *,double *);
void main(){
char *c;
double freq_table[256];
int i;
printf("\nEnter a string : ");
printf("\nThe Frequency Table\n");
printf("\n %c\t%d",(char)i,(int)freq_table);
if(i%10==0)//this is used only for the display purpose.
void Get_frequencies(char *s,double *count){
int i,j;

Related Programming Questions