C program to use (++) operator with return value of function

				
					#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int input(int);
int sqr(int);
int x,y =0;
clrscr();
x=sqr(++(y-(input(x))));
printf(“Square=%d”, x);
}
input(int n)
{
printf(“Enter value of x=”);
scanf(“%d”, &n);
return(n);
}
sqr(int m)
{
return (pow(m,2));
}
				
			

Output:

Enter value of x=7

Square=64

Leave a Reply