|
|
|
|
|
| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 22 Mar 2008 15:36:38 IST
|
|
|
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 1 
in 1 votes ) [?]
|
|
You have to be logged on to rate
|
|
|
|
|
|
|
|
|
|