Command Line Arguments

Q1: What will be the output of the program
#include<stdio.h>
void fun(int);

int main(int argc)
{
    printf('%d ', argc);
    fun(argc);
    return 0;
}
void fun(int i)
{
    if(i!=4)
        main(++i);
}

A 1 2 3

B 1 2 3 4

C 2 3 4

D 1

ANS:A - 1 2 3

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.