logo

Crowdly

Browser

Add to Chrome

What is the output of the following program? #include <stdio.h> #include <st...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the output of the following program?

#include <stdio.h>

#include <stdarg.h>

void print_numbers(int count, ...) {

    va_list args;

    va_start(args, count);

    

    for (int i = 0; i < count; i++) {

        printf("%d ", va_arg(args, int));

    }

    va_end(args);

}

int main() {

    print_numbers(3, 10, 20, 30);

    return 0;

}

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on lms2.ai.saveetha.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome