can you explain this question , i just want basic experession for understanding it is c programming data structures struct stack XXXXXXXXXXint top;6 12 40int items[50];main()void fun(struct stack...


can you explain this question , i just want basic experession for understanding


it is c programming data structures


3)<br>#include <stdio.h><br>struct stack<br>40 9 12 11 7 6<br>int top;<br>6 12 40<br>int items[50];<br>main()<br>void fun(struct stack *);<br>void stk_print(struct stack *);<br>struct stack S = (5,(6,7,11,12,9,40}};<br>stk_print(&S); fun(&S); stk_print(&5);<br>>l/continues<br>void stk_print(struct stack top; k >=0; k--) printf("%d ", ps->items[k]); printf("\n"); void fun(struct stack *ps) struct stack Q; Int k; Q.top = -1; do if((ps -> items[ps -> top]) % 2 == 0) Q.items[++Q.top] = ps -> items[ps -> top]; }while(ps -> top--); *ps = Q; //====== "/>
Extracted text: 3) #include struct stack 40 9 12 11 7 6 int top; 6 12 40 int items[50]; main() void fun(struct stack *); void stk_print(struct stack *); struct stack S = (5,(6,7,11,12,9,40}}; stk_print(&S); fun(&S); stk_print(&5); >l/continues void stk_print(struct stack "ps) int k; for(k=ps->top; k >=0; k--) printf("%d ", ps->items[k]); printf("\n"); void fun(struct stack *ps) struct stack Q; Int k; Q.top = -1; do if((ps -> items[ps -> top]) % 2 == 0) Q.items[++Q.top] = ps -> items[ps -> top]; }while(ps -> top--); *ps = Q; //======

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here