Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions

Question

In what ways are you similar to your closest friends?

Answered: 1 week ago