0% found this document useful (0 votes)
23 views

Main Int I - L - Abc (10) Printf ("%D/N", - I) Int - L - Abc (Int I) Return (I++)

The code defines a function _l_abc that takes an integer as a parameter, increments it, and returns the value. It then calls _l_abc, passing 10 as a parameter, assigns the return value to i, decrements i, and prints i. The code will print 9 since _l_abc returns the parameter before incrementing, so i is initially 10 then decremented.

Uploaded by

Pandian Durai
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Main Int I - L - Abc (10) Printf ("%D/N", - I) Int - L - Abc (Int I) Return (I++)

The code defines a function _l_abc that takes an integer as a parameter, increments it, and returns the value. It then calls _l_abc, passing 10 as a parameter, assigns the return value to i, decrements i, and prints i. The code will print 9 since _l_abc returns the parameter before incrementing, so i is initially 10 then decremented.

Uploaded by

Pandian Durai
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

main()

{
int i=_l_abc(10);
printf("%d\n",--i);
}
int _l_abc(int i)
{
return(i++);
}

a)9

b)10

c)

You might also like