Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Talk about the difference between call by reference and call by value and in C language with example?

void main() {
        int a = 10,
        void increment(int);
        Cout << "before function calling" << a;
        increment(a);
        Cout << "after function calling" << a;
        getch();

        void increment(int x) {
            int x = x + 1;
            Cout << "value is" << x;
        }
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #Talk #difference #call #reference #call #C #language
ADD COMMENT
Topic
Name
6+6 =