adplus-dvertising
frame-decoration

Question

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

a.

Segmentation fault/code crash

b.

Executable file name

c.

Depends on the platform

d.

Depends on the compiler

Answer: (a).Segmentation fault/code crash

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?