Question 3) Write a user defined function called Maximum. The function takes two parameters. Two parameters are integer pointer reference values. The function determines which of the two values is bigger. The function will display a message stating which value is bigger. If pointers aren't used, then no credit will be given.
Question 3) Write a user defined function called Maximum. The function takes two parameters. Two parameters are integer pointer reference values. The function determines which of the two values is bigger. The function will display a message stating which value is bigger. If pointers aren't used, then no credit will be given.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
**C
**PLEASE PUT SOME COMMENTS
** DOUBLE CHECK IF IT WORKS
Q IN PICTURE
Expert Solution
Step 1
logic:-
take two values from user in main .
pass the address of num1 and num2 in function call.
In function definition check if *p1>*p2
display *p1 is greater *p2
else
display *p2 is greater than *p1
end.
Step by step
Solved in 3 steps with 1 images
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education