Top

Discussion

How will you free the memory allocated by the following program?

#include 
#define CONDITION(x)
printf("letsfindcourse");                         
int main()
{
  CONDITION(0);
  return 0;
}

 

  • A.Runtime Error
  • B.letsfindcourse
  • C.Compilation error
  • D.None of the above

Answer: B

#define CONDITION(x) ends with backslash(/). So that next line following #define CONDITION(x) will be consider by the C compiler and prints letsfindcourse.

No comment is present. Be the first to comment.
Loading…

Post your comment