Look at the Code:
#include<string.h>
void main()
{
char s1[]="abcd";
char s2[10];
char s3[]="efgh";
int i;
clrscr();
i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd"));
printf("%d",i);
}

What will be the output?
A)No output B) A Non Integer C)0 D) Garbage

Answer Posted / rishab

Answer is 0, if you will correct the syntax

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does free set pointer to null?

563


What is the use of linkage in c language?

617


Can you assign a different address to an array tag?

698


What is a class c rental property?

610


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1014






Why does not c have an exponentiation operator?

629


Explain how can you restore a redirected standard stream?

592


What does %d do?

720


How do I create a directory? How do I remove a directory (and its contents)?

606


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

770


what is use of malloc and calloc?

1382


What is the sizeof () operator?

624


The statement, int(*x[]) () what does in indicate?

647


Why array is used in c?

553


Explain what is the difference between functions getch() and getche()?

606