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

How will you write a code for accessing the length of an array without assigning it to another variable?

611


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1253


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

665


What is double pointer in c?

581


What is a shell structure examples?

586






Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

575


Is using exit() the same as using return?

669


What is the significance of an algorithm to C programming?

594


What is the use of pragma in embedded c?

586


Can a pointer be static?

615


What is the advantage of a random access file?

637


What is the difference between void main and main in c?

621


How can I find the modification date of a file?

698


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1406


What is malloc() function?

632