adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>
int main()
{
    char str[10] = "Compsciedu";
    printf("%s", str);
    return 0;
}

a.

Compsciedu

b.

Compscied

c.

Run Time Error

d.

Compilation Error

Posted under C Programming

Answer: (a).Compsciedu

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?