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
give the output...........

#include<iostream.h>
void strfn(char * *s)
{
    char *n = "INDIA";
    *s = n;
}
void main()
{
    char *str = "Bharat";
    strfn(&str);
    for (int x = 0; str[x]>0;x++)
    {
        for(int y = 0; y <= x; y++)
            cout << str[y];
        cout << endl;
    }
}


............................................................................................................................................................................................
There's Light at the end of every Tunnel, so KEEP MOVING....
Best of luck to all my mates....
............................................................................................................................................................................................
 this reply: 5 points  (with Olaaa!! Perrrfect answer.   in 1 votes )   [?]
 
You have to be logged on to rate
  
 

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