πŸ“Š C++
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); 
}
  • (A) Error in C and C++
  • (B) Warning in C and C++
  • (C) Error in C++ and success in C
  • (D) Error in C and success in C++
πŸ’¬ Discuss
βœ… Correct Answer: (C) Error in C++ and success in C

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
150
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
81%
Success Rate