Course Solutions Uncategorized (Solved) : Hi Program C Pass Pointer Program Thanks Include Function Declaration Prototype Int Main I Q36078315 . . . .

(Solved) : Hi Program C Pass Pointer Program Thanks Include Function Declaration Prototype Int Main I Q36078315 . . . .

 

Hi, this program is in C.

Can you a pass by pointer in this program. Thanks.

#include
//function declaration/prototype here

int main(int argc, char * argv[]) {
int num1, num2;
  
printf(“Please enter two integers (separated by ,):n”);
scanf(“%d,%d”, &num1, &num2); //enter two integersseparated by a comma (,)
  
printf(“num1 stores: %dn”, num1);
printf(“num2 stores: %dn”, num2);
  
/*make a function call to make sure the followings are true afterwe call the function
(1) variable num1 stores the larger value after the function iscalled
(2) variable num2 stores the smaller value after the function iscalled
*/
  
  
printf(“nAfter calling the functionn”);
printf(“num1 stores the bigger one: %dn”, num1);
printf(“num2 stores the smaller one: %dn”, num2);
  
return 0;
}

//function definition here

Expert

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post