Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what is an argument in c++?
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
Subject: argument
sir i am unable to understand what is an argument? regards.
Reply
#2
Dear student!
Argument is information required by a function to perform a task. Argument is a value that can be passed to function to be used as input information. Some function does not need any information to perform the task. In this case, the argument list for such functions will be empty. Arguments to a function are of valid data type like int number, double radius etc.
For example,
double raiseToPow(double x, int power)

double is return type,
raiseToPower is name of function
double x and int power are arguments of function.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Default Function Argument with example Vuhelper 0 13,360 05-31-2012, 01:47 AM
Last Post: Vuhelper
  Argc(argument count) and argv(argument value) are used in main function Vuhelper 0 2,048 01-04-2012, 10:42 PM
Last Post: Vuhelper
  must have an argument of class or enumerated type Vuhelper 0 1,487 06-11-2011, 06:46 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support