696 views
1 votes
1 votes
 void function ( char *a , char *b)
    {
        ++*a;
        *b++;
    }
    
    main ()
    {
        int a=5, b=5;
        function (&a, &b);
        printf ("%d,%d",a,b);
    }

Here a and b both are printing the value after execution of function code totally. Then it should print 6,6. But it is not printing that. Is preincrement and postincrement evaluate  on line of printing? Why it is not print after increment of a and b both?

Plz give brief description about this

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
1
jugnu1337 asked May 10, 2022
282 views
SOURCE NAME::: UNDERSTANDING POINTER IN C (BOOK) BY YASHWANT KANETKARmy answer is C am i right?
0 votes
0 votes
0 answers
4