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
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
what is reason of your company position's in india no. 1.
please explain every phase in the "SDLC" in the dotnet.
a c code by using memory allocation for add ,multiply of sprase matrixes
Which is better between malloc and calloc?
Is null always equal to 0(zero)?
Do you know the use of 'auto' keyword?
How can I read/write structures from/to data files?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
Why is #define used?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What are the types of data types and explain?
What is a good data structure to use for storing lines of text?
How many types of errors are there in c language? Explain
Differentiate between null and void pointers.