I need to take a sentence from input and sort the words
alphabetically using the C programming language.
Note: This is C not C++.
qsort and strtok not allowed
Answer Posted / chumurva
its working but not correct.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Explain how do you override a defined macro?
What is the purpose of macro in C language?
When should volatile modifier be used?
What are the advantages of c preprocessor?
In which language linux is written?
Why functions are used in c?
Tell me when would you use a pointer to a function?
Explain what is the use of a semicolon (;) at the end of every program statement?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
What are the types of c language?
What does %d do in c?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
Write a program to check prime number in c programming?
Explain what is the difference between far and near ?