Write a program secret.c including two functions (sender and receiver) that communicate via external variables. Sender takes
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program "secret.c" including two functions ("sender" and "receiver") that communicate via external variables. Sender takes a message (a string) and saves it to the external variable secret. The message is less that 100 characters long. The receiver converts the secret to an integer and returns it. Thus the two functions share information without explicitly passing it as parameters.
Example Input: 12345
Output: 12345
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: