Subscribe To Our Newsletter

Sign Up Now To Get SEO and Programming Tips

We Hate Spam! Really, It's terrible and we never do it.

C++ | Arguments In Functions | Lecture 5

arguments of functions
Default arguments in functions allow you to call specific arguments within the specific function.
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;  
   }  

Share this article :

Post a Comment

Give your reviews about this blog. Leave your comments. what do you think about this post?

Comments Description is given below:
1) I love to read comments, but do not spam.
2) Like this blog and also tweet its posts.
3) You can use some xHTML tags.
4) All Comments are Do Follow, Please try to use blog professionally.
5) Mention Your Name below the comment.
6) You can also suggest for improvement.
7) Do not forget to subscribe FusionMarketPro.online blog.

---------------------------------------
Thanks for visiting FusionMarketPro.Online.
==========================================
Join Sami Jeweller and Shop online jewelry for your someone special.
==========================================
Best Regards

 
Copyright © 2013-2016. Samee Articles - All Rights Reserved
Proudly powered by Blogger