12. Queue/QueueUsingStacks.cpp
int pop1()  
{  
// Condition to check whether the stack1 is empty or not.    
if(top1==-1)  
{  
   printf("\nStack is empty..");  
}  
else  
{  
   int a=stack1[top1];  // Assigning the topmost value of stack1 to 'a' variable.   
   top1--;  // decrementing the value of top1.  
   return a;   
}  
}
// Removing the elements from the stack1.  
Removing the elements from the stack1.
Removing the elements from the stack1 .
int pop1()  
{  
if(top1==-1)  
{  
   printf("\nStack is empty..");  
}  
else  
{  
   int a=stack1[top1];  
   top1--;  
   return a;   
}  
}
int pop1 ( ) { if ( top1 == -1 ) { printf ( " \n " ) ; } else { int a = stack1 [ top1 ] ; top1 -- ; return a ; } }
Removing the elements from the stack1.
Removing the elements from the stack1 .
// Condition to check whether the stack1 is empty or not.     // Assigning the topmost value of stack1 to 'a' variable.    // decrementing the value of top1.  