Default arguments in functions allow you to call specific arguments within the specific function.
Here we defined two functions.
Here we defined two functions.
pow() And rand()And we use them to get the specific value.
/*
Name: arguments in functions
Copyright: Sameearticles.blogspot.com
Author: Samee Ullah Feroz
Date: 27/01/14 00:10
Description: Using some other functions of mathematics.
*/
#include <iostream>
#include <cmath> //it is for all math functions library
int main() //it is actually a function here
{
using namespace std;
double num1;
num1 = pow(2.0, 4.0); // power function like 2^4
cout << "power is = " << num1 << endl;
num1 = rand(); // random numbers
cout << "Random Number is = " << num1 << endl;
system("pause");
return 0;
}

Post a Comment
Give your reviews about this blog. Leave your comments. What do you think about this post?
Comments Guidelines:
1) I love to read comments, but please avoid spam.
2) Like this blog, share your insights, and spread the word.
3) You can use basic HTML/xHTML tags.
4) All comments are DoFollow—please use the section professionally.
5) Kindly mention your name or brand below your comment.
6) Constructive suggestions for improvement are always welcome.
7) Do not forget to explore our main agency platform at pingbooster.site.
Thanks for visiting Samee Articles.
========================================
Explore custom digital solutions and WordPress plugins at PingBooster Plugins.
Best Regards,
Samee U. Feroz