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 / santhoo035

if u write the write the code as i=strcmp(strcat(s3,ctrcpy
(s2,s1)),strcat(s3,"abcd")); then it will print 0

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can I make sure that my program is the only one accessing a file?

614


What are volatile variables in c?

511


Is main a keyword in c?

619


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

1486


Why is c known as a mother language?

738






What 'lex' does?

710


What is break in c?

576


How to find a missed value, if you want to store 100 values in a 99 sized array?

803


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

556


What are the 4 types of functions?

561


What language is c written?

568


Was 2000 a leap year?

618


What are the 4 data types?

590


How can you read a directory in a C program?

643


What is abstract data structure in c?

517