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.
@SuvasishDutta
It is assigning the value of x=3, and then post-incrementing , Is it not two operation before a semicolon?
@srestha mam, please kindly post the code of your question. I am not getting the code based on your question.
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; }
64.3k questions
77.9k answers
244k comments
80.0k users