I got some code- I want to see how the particular variables are placed onto stack.
#include <iostream>
using namespace std;
int fun(char b, long c, char d){
short p,q,r;
int y;
/***return &b,&c,&d,&p,&q,&r,&y;***/ - this one was for purpose of what should be returned, it is not valid code}
int main(){
fun('a',123,'b');
return 0;
}
Expected result would be addresses of particular variables, that's why I used operand &. But still, I don't know where to place it in my code correctly, i.e. MAIN function.
REMARK: function does literally NOTHING, it is just an exercise for computer architecture course purpose.