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
What are all different types of pointers in c?
Why c is called object oriented language?
What are c preprocessors?
What are c identifiers?
Tell us two differences between new () and malloc ()?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
Why are algorithms important in c program?
Dont ansi function prototypes render lint obsolete?
Can two or more operators such as and be combined in a single line of program code?
What are the features of c language?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
Is null a keyword in c?
When should volatile modifier be used?
What is an lvalue?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3