What will be the output of the following program?
Asked In Exam: BPSC TRE 3.0
#include <stdio.h>#include <string.h>int main(){ char str[] = "san foundry"; int len = strlen(str); int i; for(i = 0; i < len; i++) push(str[i]); // pushes each character into stack for(i = 0; i < len; i++) printf("%c", pop()); // pops and prints from stack}Options
- A. yrdnuof nas
- B. foundry nas
- C. sanfoundry
- D. san foundry
