Header Ad

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

In this tutorial, we are going to write a C program to use (++) operator with the return value of function in C Programming with practical program code and step-by-step full complete explanation.

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


C program to use (++) operator with the return value of the 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);
}

int input(int k)
{
    printf("Enter value of x=");
    scanf("%d",&k);
    return(k);
}

int sqr(int m)
{
    return(pow(m,2));
}


Output

 
Enter value of x=7
Square=64


Post a Comment

0 Comments