You are not logged in.
Pages:: 1
#1 2015-09-16 05:21:33
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
You cannot discover the new oceans unless you have the courage to lose the sight of the shore.
Offline
2015-09-16 05:21:33
- Advertisement
- Ads By Google
Re: C Language Arrays And Strings Program Output:
\n
Pages:: 1