Q. What happens if the line below is executed in C and C++?
Code:
#include <stdio.h>
int main(void)
{
int new = 10;
printf("%d", new);
}
β
Correct Answer: (C)
Error in C++ and success in C