adplus-dvertising
frame-decoration

Question

What will be output for the following code?
#include <stdio.h>
int main(int argc, char *argv[])
{
    while (*argv  !=  NULL)
        printf(""%s
"", *(argv++));
    return 0;
}

a.

./a.out

b.

Segmentation fault/code crash

c.

Depends on the platform

d.

Depends on the compiler

Answer: (a)../a.out

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be output for the following code?