#include <stdio.h> #include <conio.h> void swap(char *, char *); int main() { char *pstr[2] = {"LAPTRINHC++", ".NET"}; swap(pstr[0], pstr[1]); p

Hoàn Lê Văn

New member
#include <stdio.h>
#include <conio.h>
void swap(char *, char *);
int main()
{
char *pstr[2] = {"LAPTRINHC++", ".NET"};
swap(pstr[0], pstr[1]);
printf("%s%s", pstr[0], pstr[1]);
getch();
}
void swap(char *t1, char *t2)
{
char *t;
t=t1;
t1=t2;
t2=t;
}</blockquote>
What is output?
A. LAPTRINHC++.NET
B. .NETLAPTRINHC++
C. Address of pstr[0] Address of pstr[1]
 

Đức Huy

New member
Hướng dẫn
Chọn A là đáp án đúng