+ 1
Parameters
what are parameters and arguments in c++?
4 Respostas
+ 1
here is a quick start guide for you👇
https://www.sololearn.com/learn/CPlusPlus/1636/
+ 1
Imagine you want a func to calculate the addition of two given numbers in main so it will be
#include <iostream>
using namespace std;
void add(int x,int y){
cout<<x+y;
}
int main(){
int w = 4;
int s = 4;
add(w,s);
}
Its a way you can give a func input,Its better to learn in sololearn
0
parameters are the declaration of what type of values would be passed to a function