in Programming in C edited by
562 views
0 votes
0 votes

Can we assign a value to a variable in calling a function as function argument?

Ex-
 

Int Func c( int);
Int i =3;

Void main(){
Fun c ( i=3)}
Int Func c (int x)
{
Int x++;
return x;
}


Please pardon me as the code above is not accurate but can give an idea of what i am trying to ask.

in Programming in C edited by
562 views

4 Comments

@SuvasishDutta

It is assigning the value of x=3, and then post-incrementing , Is it not two operation before a semicolon?

0
0

@srestha mam, please kindly post the code of your question. I am not getting the code based on your question.

0
0

no no, it is not my question. This line I written in last line, is for this question 

See these line of the question and check my statement

Fun c ( i=3)}
Int Func c (int x)
{
Int x++;
return x;
}

 

0
0

Please log in or register to answer this question.

Related questions