write a program to count the no of repaeted words in a line?
Answer / k raja sekhar
create a linked list of stucture having 2 feilds
1. string "to keep the string"
2. int "to maintain count"
get a word from the line, check in a array say words[]. if it is available just increase the count of the word in the linked list if not create a new node and insert the word in the array.
| Is This Answer Correct ? | 0 Yes | 2 No |
Is c programming hard?
How can I change their mode to binary?
Which of the Following will define a type NODE that is a node in a Linked list? A)struct node {NODE*next;int x;};type def struct node NODE; B)typedef struct NODE {struct NODE *next;int x;}; C)typedef struct NODE {NODE *next;int x;}; D)typedef struct {NODE *next;int x;}NODE;
. Write a program to get a string and to convert the 1st letter of it to uppercase
What is call by reference in functions?
Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates
char ch="{'H','I',0};printf("%s",ch);what is output
#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
The differences between Windows XP and Windows Visa
hi send me sample aptitude papers of cts?
main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above
Can one function call another?