Home / MCQ Bank / Computer
Computer File Input Output Difficulty: Medium

What will be the output of the following C code? #include <stdio.h> #include <stdarg.h> void func(int, ...); int main() { func(2, 3, 5, 7, 11, 13); return 0; } void func(int n, ...) { int number, i = 0; va_list start; va_start(start, n); while (i != 3) { number = va_arg(start, int); i++; } printf("%d", number); }

Select the correct option to test your answer:

More Computer Questions

Which is not a directive? Which of the following statement is true about stack? The configuration register setting of 0x2102 provides what function to a router? Bogosort works by . . . . . . . . What data structure is best for implementing a system that supports frequent insertions and deletions while maintaining a sorted order?