Home / MCQ Bank / Computer
Computer Function Difficulty: Medium

What will be the output of the following C code? #include <stdio.h> #define COLD int main() { #ifdef COLD printf("COLD\t"); #undef COLD #endif #ifdef COLD printf("HOT\t"); #endif }

Select the correct option to test your answer:

More Computer Questions

The organization and interconnection of the various components of a computer system is The blobs are generally stored in Which function can be used to move the pointer to the previous array position? Which of the following is a valid variable name in Ruby? What will be the output of the following Java code? class overload { int x; int y; void add(int a) { x = a + 1; } void add(int a, int b) { x = a + 2; } } class Overload_methods { public static void main(String args[]) { overload obj = new overload(); int a = 0; obj.add(6); System.out.println(obj.x); } }