Question #169868

Write the definition of void function that takes as input two parameters of type int, double and string.the functions seta the values of int and double variable to 0 and the value of the string variable to the empty string



Expert's answer

void function(int i, double d, string s)

{

i=0;

d=0;

s="";

cout<<i<<d<<s;

}
LATEST TUTORIALS
APPROVED BY CLIENTS