#include<iostream.h>
#include<string.h>
main()
{
char word[]="test";
int i=0,j=0;
while(i<4)
{
j=0;
while(j<=i)
cout<<word[j++];
cout<<'\n';
i++;
}
return 0;
}
what is the output for this program?

Answers were Sorted based on User's Feedback



#include<iostream.h> #include<string.h> main() { char word[]="test"; int ..

Answer / suz

The Output will be...

t
te
tes
test

Is This Answer Correct ?    1 Yes 1 No

#include<iostream.h> #include<string.h> main() { char word[]="test"; int ..

Answer / grace

there is no output(printing) statements so no output for
this program if we compile this program means it will
execute a warning msg to u.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Everything Else AllOther Interview Questions

i was rejected twice once in 2007 and other in 2008 april can i apply in 2009 jan ........if what should i write wn asked have u been rejected twice in lat 12 months

0 Answers  


Are palms really trees?

0 Answers  


hello everyone myself sumit doing b.com final please tell me various exams ,their procedure and qualification for getting jobs in excise,custom and taxtion field.

0 Answers  


Hi all, i am shri.. i too got shortlisted for sbi clerk 2010.. currently i am doing mca I year.. shall i reveal the details of mca and the college i am studying in the interview?? some one pls help me....

0 Answers  


WHAT MOTIVATES YOU TO WORK

6 Answers   Cushman Wakefield,






how can you identified yourself?

0 Answers  


hai i want to know to do the oracle erp course. If any body knows the details of this plz post u r answers. Thank U

0 Answers  


first women prime minister in the world

0 Answers  


hey do any one know when will be sbh clerks joining date exactly or roughly plzzzzz rep me kk and where there are vacancies

0 Answers  


where is isro located?

1 Answers  


Dear sir, in rbi total time is 3 hours & total 200 marks question . But i dont understand how many no of question in maths,eng,reas,ga. please help me. so please send me a total set f rbi previous papers with solution. THANKS

0 Answers  


tell me some thing about yourself?

0 Answers  


Categories