The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
56 views
int   x = 5, y = 10 ;
void main ( ) 
{ 
int   i = 2, j = 3 
       A (i, j); 
} 
void A (int i, int j) 
{ 
      int x = 10, y = 5 ; 
      i = i + x :
      j = i + y : 
printf ("%d %d", i, j); 
     B (i, j); 
} 
void B (int i, int j) 
{ 
     i = j + y ; 
     j = i + x ; 
print f ("%d", i + j); 
} 

output printed by

1.call-by-reference

2. call-by-name

3. call-by-need

4. call-by-value

5.Static scoping

6.Dynamic scoping


Any reference for call by name and call by need

Is for static coping $12,17,54$ or $12,17,59$?

in Programming by Veteran (116k points) | 56 views

1 Answer

+2 votes

i am getting this

by Boss (34.9k points)
edited by
0

@abhishekmehta4u

yes, can u tell from where r u reading call by name, call by need such one (I mean which generally not comes)

Can u tell me call by name directly copies name from main or from global variable?

0

@abhishekmehta4u

plz answer

Related questions

0 votes
0 answers
6
+6 votes
2 answers
7
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,339 questions
55,763 answers
192,339 comments
90,774 users