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 / ayyanar.m

garbage

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a far pointer in c?

588


Is int a keyword in c?

550


what is the difference between class and unio?

1854


explain how do you use macro?

660


Why doesnt this code work?

609






What does %d do?

708


All technical questions

1501


Write a program that accept anumber in words

1244


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

1755


What are control structures? What are the different types?

588


What is the scope of an external variable in c?

561


What are the different data types in C?

718


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1612


Write a program to know whether the input number is an armstrong number.

660


How can I automatically locate a programs configuration files in the same directory as the executable?

620