Page 1 of 1

What will be the output of the following program?

Posted: Wed Jul 13, 2022 7:41 pm
by answerhappygod
main()
{
char str[]="san foundry";
int len = strlen(str);
int i;
 
for(i=0;i<len;i++)
push(str); // pushes an element into stack
 
for(i=0;i<len;i++)
pop(); //pops an element from the stack
}
a) sanfoundry
b) san foundry
c) yrdnuof nas
d) foundry nas