1. Write a program to accept two integers from the keyboard. Using malloc, save them in a single memory block. Print the numbers and their average without using a temporary variable.
2. Modify Program C16.2 one to accept the integers as command-line arguments. Include error checking to ensure that two arguments are provided by the user.
3. Write a program that uses malloc to create space for storing 10 integers. Using a loop and the pow function of the math library, fill up the space with values of 2 raised to the power n where n varies from 1 to 10. Print the values
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here