B

Babita • 7.70K Points
Tutor III

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: 229
  • Filed under category C++

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.


Question analytics