HR Interview Interview Programming Technical

Priya has a box that looks like a stack and she does the following operations on empty box
PUSH(8)
PUSH(7)
POP
PUSH(1)
PUSH(3)
A. 31_8
B. 8_1_7
C. 8_1_
D. None of these

Read Solution (Total 3)

HR Interview Other Question

#include
int main(){
int a,fact=1;
scanf("%d",&a);
for(i=1;i<=a;i++)
{
fact=fact*i;
}
printf("%d",&fact);
}}
how to reverse a string without using array?