hi all
Please help me. I am A bgineer of C language and i want a solution of my question that is;--- "A program that print each world of a given string reverse".
If any one of you can solve this than please give me an answer
Anoop Dogra 0 Newbie Poster
Recommended Answers
Jump to Post#include <stdio.h> #include <conio.h> void main( void ) { char a[100]; char b[10][20]; int x, m = 0, p, wrd = 0, i = 0; printf ( "Enter a sentence:" ); gets ( a ); for ( x = 0; a[x] != '\0'; x++ ) { if …
Jump to PostYou'd think some people would know by now not spoon-feed complete answers without any demonstration of effort from the OP
http://www.daniweb.com/forums/announcement118-2.html> void main( void )
This is simply wrong. main returns an int - no ifs buts or maybes.> gets ( a );
This is utterly …
All 5 Replies

iamthwee
Salem commented: A spoonfed answer, and a terrible one at that - void main, gets(), unportable. -2
Aia commented: I see sarcasm. Salem didn't or he didn't like it. +6
Salem 5,265 Posting Sage
iamthwee commented: unnecessary colouring parts of your post in green, and most notably against the forum rules :) -2
Aia commented: The OP is the beneficiary of the nice explanation. +6
TkTkorrovi 69 Junior Poster
azimuth0 1 Light Poster
Narue 5,707 Bad Cop Team Colleague
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.