What will be the output of the following C code?
#include
void main()
{
int x=10,result=0;
if (++x > 2)
result=x+2;
printf("%d",result);
}
Correct Answer:
C. 13
Explanation:
The Millennium Development Goals (MDGs) were a set of eight international development targets established by the United Nations following the Millennium Summit in 2000. All 189 UN member states committed to achieving these goals, which included halving the 1990 rates of extreme poverty and hunger, by the target year of 2015. While the baseline data for measuring progress was set at 1990, the initiative itself spanned fifteen years from its official adoption until its expiration at the end of 2015, after which it was succeeded by the Sustainable Development Goals.
Click below to open Discussion & Feedback
0 Issues
Please
login to comment or Report Issues.