sign up I login
 advanced
refer a friend - earn nickels!!

Ask & Discuss Questions with Community & Experts

Moderation Team
 90 chars left    advanced
Ask iit jee aieee pet cbse icse state board community Community Discussion Question: doubt in C
Forum Index -> Computer Science like the article? email it to a friend.  
Author Message
ra_kv1_mdu (31)

Cool goIITian

Olaaa!! Perrrfect answer. 5  [8 rates]

ra_kv1_mdu's Avatar

total posts: 59    
offline Offline

1.prg to read a name & rearrange the characters in alphabetical order.


2.read a line of text & convert each word into a title case.

    
pratik20990 (137)

Hot goIITian

Olaaa!! Perrrfect answer. 19  [40 rates]

pratik20990's Avatar

total posts: 155    
offline Offline

for second program.....i ws not able to understand clearly what u want.......wat i understood is tht u want to convert all letters to uppercase


the program is below-


#include<iostream.h>

#include<conio.h>

#include<string.h>

#include<ctype.h>



void main()

{

 clrscr();

 int l;

 char arr[50];

 cout<<"\nEnter a line of text:";

 cin.getline(arr,50);

 l=strlen(arr);

 for(int i=0;i<l;i++)

 {

  if(islower(arr[i]))

  {

   arr[i]=toupper(arr[i]);

  }

 }

 cout<<"\nThe converted array is:\n";

 for(i=0;i<l;i++)

 {

  cout<<arr[i];

 }





 getch();

}





pls rate if useful.......

 this reply: 5 points  (with Olaaa!! Perrrfect answer.   in 1 votes )   [?]
 
You have to be logged on to rate
  
 
Forum Index -> Computer Science
Go to:   

 Aakash Institute IIT/ AIEEE/ Medical Crash Course
Name  
E-mail  
Phone  
Mobile  
** Hurry. Exclusive goIIT Offer. Limited Seats Only!
available in: New Delhi, Amritsar, Bhatinda, Bokaro, Chandigarj, Dehradun, Guwhati, Hyderabad, Indore, Jaipur, Kanpur, Karnal, Kolkata, Kota, Lucknow, Ludhiana, Mumbai, Noida, Patiala, Patna, Pune, Ranchi, Varanasi
Top Offers for goIITians
Correspondence Courses
Brilliant Tutorials
Narayana Institute
Aakash Institute
Classroom/Crash Courses
Aakash-IITJEE : AIEEE
Aakash-IITJEE : DCE
Aakash-IITJEE : MHTCET
Aakash Institute : AIPMT
Online Test Series
Brilliant Tutorials
Narayana Institute
Aakash Institute
Mahesh Tutorials
AMITY      Sri Chaitanya