Home / MCQ Bank / Computer
Computer Preprocessor Difficulty: Medium

What will be the output of the following C code? #include<stdio.h> void f() { #define sf 100 printf("%d",sf); } int main() { #define sf 99; f(); printf("%d",sf); }

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following C code? #include <stdio.h> (sizeof double = 8, float = 4, void = 1) #define PI 3.14 int main() { printf("%d", sizeof(PI)); } When you open my computer on desktop you see the information of Which data structure is used for efficient retrieval of unique items? What will be the output of the following C code? #include <stdio.h> int main() { char *str = "hello world"; char strary[] = "hello world"; printf("%d %d\n", strlen(str), strlen(strary)); return 0; } A dominating set of graph G, is the subset D of vertices, if each vertex not in D is adjacent to how many vertices?