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
Explain how can I make sure that my program is the only one accessing a file?
What are volatile variables in c?
Is main a keyword in c?
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.
Why is c known as a mother language?
What 'lex' does?
What is break in c?
How to find a missed value, if you want to store 100 values in a 99 sized array?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
What are the 4 types of functions?
What language is c written?
Was 2000 a leap year?
What are the 4 data types?
How can you read a directory in a C program?
What is abstract data structure in c?