Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Can anyone tell me if it is possible to call a function inside another function without using all of its parameter. For ex void
C++
Can anyone tell me if it is possible to call a function inside another function without using all of its parameter.
For ex
void FunctionA ( int a, int b, int c, int ){
....
}
void FunctionB( int a, int b){
//calling FunctionA inside FunctionB
FunctionA(a,b, c);
}
So basically I got an error because the number of arguments don't match.. but I don't need the last argument in function A to be called. So what should I do? And please give an example thanks!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started