edited by
609 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.

edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
1 answer
2
hacker16 asked Apr 5, 2018
546 views
#include<stdio.h void temp(int a[]); main(){ int a[5]={1,2,3,4,5}; printf("%d", sizeof(a)); temp(a); } void temp(int a[]){ printf(" %d", sizeof(a)); }Output of above code...
1 votes
1 votes
3 answers
4
jverma asked May 23, 2022
1,069 views
#include <stdio.h>int f(int n){ static int r = 0; if (n <= 0) return 1; r=n; return f(n-1) + r;}int main() { printf("output is %d", f(5)); return 0;}Ou...