Đỗ Thu Hiền
New member
What will be the output of the following program?
A. sanfoundry
B. san foundry
C. yrdnuof nas
D. foundry nas
Code:
main()
{
char str[]="san foundry";
int len = strlen(str);
int i;
for(i=0;i<len;i++)
push(str[i]); // pushes an element into stack
for(i=0;i<len;i++)
pop(); //pops an element from the stack
}
B. san foundry
C. yrdnuof nas
D. foundry nas