4 votes 4 votes int fun (char c) { int i; static int y ; } a) c, i are stored in stack and y stored in data segment b)c stored in stack and i,y are stored in data segment c) c is stored in text segment, y in data and i in stack suvasish pal asked Aug 22, 2017 suvasish pal 5.9k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Since c and i are local variables so they are stored in stack and y is static which is global so in data.So I think option A Purvi Agrawal answered Aug 22, 2017 Purvi Agrawal comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Correct option is A) since Y is a static variable and static variables are stored in DAta segment where as in recursion variables are stored in stack...... sandeepjkh answered Aug 22, 2017 sandeepjkh comment Share Follow See all 0 reply Please log in or register to add a comment.