hi everybody,
i want to write a program to print the longest word in a sentence but without using any built in function. can anybody please help me write this code in c language.
saurav_panda
0
Newbie Poster
Recommended Answers
Jump to PostYes, someone can help. What do you have so far? If you don't have anything, what's your thought process for working it out? Have you analyzed the structure of a sentence to break it down into words?
Note that "help" does not constitute doing work for you.
Jump to PostAt a glance, the logic looks okay. There are some nasty habits that should be eliminated though:
#include<conio.h>
The conio library is not needed in this program, it and all functions from it should be removed to maximize portability. This header is not standard, so you're basically limiting …
All 6 Replies
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster

cayman
saurav_panda
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
saurav_panda
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured 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.