Skip to content
Snippets Groups Projects

Resolve "Add peek function"

Merged narindra.rajohnso requested to merge 7-add-peek-function into main
All threads resolved!
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
+ 5
1
 
<<<<<<< HEAD
#include <stdio.h>
#include <stdio.h>
#include "stack.h"
#include "stack.h"
@@ -5,4 +6,7 @@ void peek(stack s, int *value){
@@ -5,4 +6,7 @@ void peek(stack s, int *value){
if(s.top>-1 && s.top<s.capacity){
if(s.top>-1 && s.top<s.capacity){
*value=s.data[s.top];
*value=s.data[s.top];
}
}
}
}
\ No newline at end of file
=======
 
#include "stack.h"
 
>>>>>>> main
Loading