Saturday, 13 December 2014

Programming Quiz-31

Q: Which of the following is illegal?


Options:
a) int *ip;
b) string s, *sp = 0;
c) int i; double* dp = &i;
d) int *pi = 0;

Answer: c

Explanation: dp is initialized int value of i. 

No comments:

Post a Comment