adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>
void main()
{
    char s[] = "Compsci Edu";
    printf("%s", str);
}

a.

Compsci Edu

b.

Edu

c.

Compsci

d.

Compilation Error

Posted under C Programming

Answer: (c).Compsci

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?