Intel Pentium 4 505J Prescott 533MHz
Problem for Intel Pentium 4 505J Prescott 533MHz (INTELP4505J)

Write a program in C to reverse each word at its




By gudia_2k7 on Mar 07, 2009

" "
write a program in C to reverse each word at its own position in a string

Solution #1

posted on Mar 07, 2009
Somewhat Helpful)

amannoug

Rank: Apprentice 
Rating: 75%, 1 votes
HI..this is a program in C++..plz convert it to C by simply making some changes in the header files and cout, cin statements..

#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<stdio.h>
void main()
{clrscr();
char ch[100];
cout<<"\n Enter a Character: ";
gets(ch);
for(int length=0;ch[length]!='\0';length++);
for(int i=0,j=length;i!=j;i++,j--)
{char temp=ch[i];
ch[i]=ch[j];
ch[j]=temp;
}
cout<<"\n Reversed String: ";
puts(ch);
getch();
}

Was this helpful?
Yes
No

Popular Solutions for Intel Pentium 4 505J Prescott


Questions and Unsolved Problems for Intel Pentium 4 505J Prescott


Do you recommend Intel Pentium 4 505J Prescott 533MHz (INTELP4505J)?
Answer

Answer
We have a model G20-101-001 MegatouchXL Touchscreen. When we turn it on it goes to a screen which... (More)

Answer
my optional components in my registry editor have no value and is causing a interruption on the... (More)

Answer
compatible processor for a E187242 mother board Dimension 5050c

Answer
want let me go in internet even so i have connection whit wirreles every time thtat i try it beasy... (More)


Didn't find what you were looking for?

Describe your problem:

Select a Category:







Ask our Experts

 

Solve Your Problem Now!
Chat Live with an Expert
Chat Now
Top Processors Experts



Top Computer & Laptop Repair
(877) 729-0812
We connect to your computer over the Internet to...
Remote Repair

(513) 874-3306
We fix and repair laptop motherboard no video, no...
LaptopOnCall Inc.



       
Solve Your Problem Now!
Chat Live with an Expert
Chat Now

Insert Link
Insert Image
Insert You-Tube clip
Insert List
Insert List
Spell Check

What is this?



Select