You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-09-16 05:21:40
C Language Arrays And Strings Program Output:
C Programming Quizzes C Language Arrays And Strings
Directions:
#include<stdio.h>
#include<string.h>
void main()
{
char str1[20] = "Hello", str2[20] = " World";
printf("%sn", strcpy(str2, strcat(str1, str2)));
}
Question:
What will be the output of the program?
Option A):
World
Option B):
WorldHello
Option C):
Hello
Option D):
Hello World
Correct Answer is Option D):
Hello World
Failure is the first step towards seccess.
Offline
2015-09-16 05:21:40
- Advertisement
- Ads By Google