#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 have my interview on 25th august of PNB. plz guide me for the same. i really need help! my id is sweet_neha1991@yahoo.com and blossoms.sana@gmail.com

0 Answers  


1st movie of mr amitabh bacchen

1 Answers   NIFT,


sir im going for write bank of baroda pos entrance exam how many months taken for held the results thank you sir...........

0 Answers  


I have a construction Company i want to know the applicability of service tax on it

0 Answers  


My D.O.B is 13/06/1990. How to write date of birth in christian era?

0 Answers   SSC,






Why Should you leave the current job, you just joined for one month in a company?

0 Answers  


what is the next procedure of sbi clerical exam after giving final result. on 3/7/2009

0 Answers   State Bank Of India SBI,


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  


With which country does pakistan share its shortest international boundary

3 Answers   NPL,


I m doing a job in a psu as distribution engineer. Now I m looking for a job in an electrical manufacturing company where I can boost up my professional knowledge.i dont have such experience for getting such a job . Pls suggest me how to shift from distribution to manufacturing.

0 Answers  


I HAVE ONE LAPTOP WHICH I HAVE PURCHASED AROUND 4 YEARS BACK.WHEN I MAKE MY LAPTOP ON CHARGING THE LAPTOP STARTS BLINKING AND THEN THE LAPTOP GETS OFF IMMIDEATELY.SO IS THE PROBLEM OF BATTERY OR CHARGER?

0 Answers  


independece day of bangladesh

1 Answers   NIFT,


Categories