Home / MCQ Bank / Computer
Computer Introduction To C Plus Plus Difficulty: Medium

What happens if we run the following code in both C and C++? #include<stdio.h> struct STRUCT { int a = 5; int func() { printf("%d\n", a); } }; int main() { struct STRUCT s; s.func(); return 0; }

Select the correct option to test your answer:

More Computer Questions

Determine Output: void main() { int i; printf("%d", scanf("%d", &i)); // value 10 is given as input here } In NiFi, what is the function of the "LookupAttribute" processor? The size of the dynamic array is deallocated if the array size is less than . . . . . . . .% of the backend physical size. What is the primary role of the HBase HFile? Which of the following is the name of the node having child nodes?