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

Syntax error at line strcmp.....

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the benefit of using an enum rather than a #define constant?

710


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

597


Why we use void main in c?

584


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

1587


What are the types of macro formats?

596






Is using exit() the same as using return?

666


What is property type c?

596


What is scope of variable in c?

553


What is a protocol in c?

552


Explain how can you determine the size of an allocated portion of memory?

612


What is the use of a static variable in c?

585


Which type of language is c?

640


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

619


What is the difference between a function and a method in c?

549


What is the difference between typedef and #define?

533