C program to assign the return value of a function to another variable YASH PAL, 31 July 2024 In this tutorial, we are going to write a C program to assign the return value of a function to another variable in C Programming with practical program code and step-by-step full complete explanation. C program to assign the return value of the function to a variable. #include<stdio.h> #include<conio.h> void main() { int input(int); int x; clrscr(); x=input(x); printf("X=%d",x); } int input(int k) { printf("Enter value of x="); scanf("%d",&k); return(k); } Output Enter value of x=5 x=5 c coding problems