WAP of C Language that illustrates the Function with no Arguments and Return values

Engg.... | 20:01 | | Best Blogger Tips
Category of Functions

Functions with no Arguments and Return value:
The called Function does not recieve any data from the calling Function. It is also a one-way data communication between the calling Function and the called Function. So let us understand this with the help of Program:

Statement of C Program: This Program illustrates the Function with no Arguments and Return values:

#include<stdio.h>
#include<conio.h>
void main()
{
float sum;
float total();
clrscr();
sum = total();
printf(" Sum = %f\n" , sum);
}
float total()
{
float a, b;
a = 5.0 ;
b = 15.0 ;
return(a+b);
}

Output:
Sum = 20.000000

                                                                    That's All
Please Share it! :)
Do you like this Story?

Get Free Email Updates Daily!

Follow us!

9 comments:

  1. write a program to check whether a number entered by user is prime or not using function with no arguments but having return value

    ReplyDelete
  2. write a program to check whether a number entered by user is prime or not using function with no arguments but having return value

    ReplyDelete
  3. Great post, very informative. I wonder why the other experts of this sector do not notice this. You must continue your writing. I’m sure, you have a great readers’ base already! You can also check ICE GATE INSTITUTE for Best GATE classes In Ahmedabad.

    ReplyDelete
  4. Gate IIT Bangalore provides GATE, PGCET, PSU, IES, CSIR NET, UGC NET, IIT JEE MAIN, PRE-MEDICAL ENTRANCE TEST, AIPMT, Aptitude Coaching and RRB Coaching in Bangalore. cet crash course bangalore

    ReplyDelete
  5. I am Sanjana From Mumbai Escorts Provided Services In Bandra, Andheri, Juhu

    Mumbai Escorts

    Juhu Escorts

    Andheri Escorts

    Bandra Escorts

    ReplyDelete
  6. I like your post....Thanks for your valuable information, It's really helpful information .. iit jee coaching classes in bangalore

    ReplyDelete