Welcome Guest | Sign in | Register
Pointers - Discussion Page For Q.10769 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Pointers > Questions and Answers

Q: What is the output of the following program segment?

int count = 10, *temp, sum = 0;
temp = &count;
*temp = 20;
temp = ∑
*temp = count;
printf("count = %d, *temp = %d, sum = %d\n", count, *temp, sum );
A. count = 2, *temp = 10, sum = 10 B. count = 20, *temp = 20, sum = 20
C. count = 10, *temp = 2, sum = 10 D. count = 200, *temp = 0.2, sum = 1

Answer and Explanation

Answer:count = 20, *temp = 20, sum = 20

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.