Single Choice
Easy
QWhat is the output of this code?
#include
int main()
{
int a[5] = {1, 2, 3, 4, 5};
int i;
for (i = 0; i < 5; i++)
if ((char)a[i] == '5')
printf("%d\n", a[i]);
else
printf("ATNYLA\n");
}
ID: #887
Data Types in C Language
2,107 views
Question Info
#887Q ID
EasyDifficulty
Data Types in C LanguageTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Output:
ATNYLA ATNYLA ATNYLA ATNYLA ATNYLA
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic