MCQ Single Best Answer Not Set

QWhat will be the output of the program ?

#include<stdio.h>
#include<string.h>
void main()
{
    char str[] = "Exam\0atnyla";
    printf("%s", str);
}

ID: #1439 String in C Language 668 views
Question Info
#1439Q ID
Not SetDifficulty
String in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Exam
  • B Exam atnyla
  • C Exam\0atnyla
  • D atnyla
Correct Answer: Option A

Explanation

Exam

Share This Question

Challenge a friend or share with your study group.