in Programming in C edited by
562 views
0 votes
0 votes
Does C support all passing parameters techniques like call by text, call by copy restore, and call by name?
in Programming in C edited by
562 views

1 comment

 This is an excerpt from https://stackoverflow.com/questions/8848402/whats-the-difference-between-call-by-reference-and-copy-restore.

Call by value is supported by C, call by reference is NOT.

C has strict call by value semantics, and does *not* support call by reference. Call by reference can be “simulated” by passing pointer to the variable instead, however that’s really passing pointer by value.

Ref: https://www.quora.com/Does-C-not-support-call-by-reference

Call by name and call by text are the same thing. C does not support it but a programming language named ALGOL does.

0
0

Please log in or register to answer this question.

Related questions