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

Ask & Discuss Questions with Community & Experts

Moderation Team
Ask iit jee aieee pet cbse icse state board community Discussion Response Post to: Computer Science....BOARDS.....PRACTISE...........
Forum Index -> Computer Science -> View Full Question like the article? email it to a friend.  
Author Message
Aatish (2308)

Blazing goIITian

Olaaa!! Perrrfect answer. 414  [533 rates]

Aatish's Avatar

total posts: 1102    
offline Offline
Hey guys out there.......I m starting this thread for all the twelthies who will be writing there CS exams on 31st.......

let us practise some questions........

heres first one.........

FIND THE OUTPUT....

#include<iostream.h>
#include<string.h>
#include<ctype.h>
void Convert(char Str[], int Len)
{
    for (int Count=0; Count<Len; Count++)
    {
        if (isupper(Str[Count]))
            Str[Count] = tolower(Str[Count]);
        else if (islower(Str[Count]))
            Str[Count] = toupper(Str[Count]);
        else if (isdigit(Str[Count]))
            Str[Count] = Str[Count] + 1;
        else Str[Count] = '*';
    }
}
void main()
{
    char Text[] = "CBSE Exam 2008";
    int Size=strlen(Text);
    Convert(Text, Size);
    cout<<Text<<endl;
    for (int C = 0, R = Size - 1; C <= Size/2; C++, R--)
    {
        char Temp = Text[C];
        Text[C] = Text[R];
        Text[R] = Temp;
    }
    cout << Text << endl;
}


My best wishes to everyone..........

BEST OF LUCK..........

............................................................................................................................................................................................
There's Light at the end of every Tunnel, so KEEP MOVING....
Best of luck to all my mates....
............................................................................................................................................................................................
    
 

Top Offers for goIITians
Correspondence Courses
Brilliant Tutorials
Narayana Institute
Aakash Institute
Classroom/Crash Courses
Narayana - Kota , Delhi , Others
Brilliant Tutorials - Class , Crash
Aakash Institute - Medical , Engg
Online Test Series
Brilliant Tutorials
Narayana Institute
Aakash Institute
Mahesh Tutorials
AMITY      Sri Chaitanya