0 votes 0 votes void main() { int x=10, y=5; swap(x,y); print(x,y); } void swap(int a, int b) { int c, x=0; c=a; a=b; b=c; } what is output using call by text? a) 5 0 b) 5 10 c) 10 0 d) 10 10 Programming in C programming parameter-passing + – Isha Karn asked Dec 9, 2014 • edited Dec 12, 2014 by Isha Karn Isha Karn 523 views answer comment Share Follow See 1 comment See all 1 1 comment reply sumit kumar commented Dec 11, 2014 reply Follow Share do error correction please... swap(x,y);; print(x,y); 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes according to the concept of inline functions. That is how we represent the concept of call by text or call by name in c ++ The answer should be: Option A: 5 0 but as per the concept of macros in c i am still not clear on the correct answer for this. here is a link for anyone who wants to go through the details of this: http://www.cs.rit.edu/~rpj/courses/plc/lab4/lab47.html#Q12 sumit kumar answered Dec 11, 2014 • edited Sep 1, 2023 by Hira Thakur sumit kumar comment Share Follow See 1 comment See all 1 1 comment reply Arjun commented Dec 12, 2014 reply Follow Share But does call by text ensure that modification in called function is reflected in the callee? 0 votes 0 votes Please log in or register to add a comment.