A

Admin • 802.91K Points
Coach

Q. What happens if the following program is executed in C and C++?

Code:
#include <stdio.h>
int main(void)
{
int new = 5;
printf("%d", new);
}
  • (A) Error in C and successful execution in C++
  • (B) Error in C++ and successful execution in C
  • (C) Error in both C and C++
  • (D) A successful run in both C and C++
  • Correct Answer - Option(C)
  • Views: 4
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.