#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

Q. IN WHAT OF THE PERSONALITY IS SELECTED TWO TIMES FOR THE PRESIDENT POST OF INDEPENDENCE INDIA ?

1 Answers  


Some questions about the free Android game Grand Battle. Hi, I am a Grand Battle fan. In the process of playing the game, I get some problems. I really want to be a perfect commander and defeat my enemies. Senior players, just lend me a hand, please. Many thanks. 1. How to increase population? 2. How to repair combat vehicles&#65311; 3. Where's the storage? 4. How to attack other players? 5. What should I do if the electric power is insufficient? 6. How to repair constructions? 7. What should I do if I'm not able to login the game, or the game gets stuck? 8. What should I do if the medals purchased haven't be received?

0 Answers  


hi, i applyed in special chance for bcom pass by DU corresponds. plz tell me list has short out or not.

1 Answers  


IN LINUX RHEL5 HOW TO REINSTALL KERNEL???????

0 Answers  


Hi !!! Iam Palvannan. I am 28 yrs old married. I am working as a senior Merchandiser in apparel export industry. I have done Post diploma in textile technology - 4 1/2 yrs after my 10th std.I have got about 8 yrs of exp in this field. But i found the industry is narrowing down & i really feel to change my career to software testing as it is booming very rapidly. I need a serious help in changing my career. I was enouraged by some group & was threatened by some. Please help me to sort this.

0 Answers  






when will be declared result of allahabad clerical exam?

0 Answers  


Hi, i have been selected for abhyudaya clerk interview but dont have the application print out. Will i be allowed for interview?

0 Answers   Banking,


hi does any one know about " MULTI LABS INDIA " company which was located in banglore wtc....i got job offer there..i just want to know about the company guys please tell me

0 Answers  


If you were stranded on an island with unlimited food and water and could only bring 1 thing what would it be?

0 Answers  


Method 2 stop soil erosion on hill?

1 Answers  


Hire Purchase System and Installments System.

0 Answers  


what is gross salary of newly appointed inspector of post?

1 Answers  


Categories