R

Ram Sharma • 193.86K Points
Coach

Q. What is the output of C program?

Code:
int main()
{
    char str1[]="JAMES,";
    char str2[15]="BOND ";
    strcat(str2,str1);
    printf("%s",str2);
    printf("%s",str1);
}
  • (A) BOND JAMES,JAMES,
  • (B) JAMES BOND,JAMES,
  • (C) JAMES,JAMES,
  • (D) None of the above

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.