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 / jitendra kumar arya

c)0

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does emoji p mean?

595


What is malloc and calloc?

571


You have given 2 array. You need to find whether they will create the same BST or not. For example: Array1:10 5 20 15 30 Array2:10 20 15 30 5 Result: True Array1:10 5 20 15 30 Array2:10 15 20 30 5 Result: False One Approach is Pretty Clear by creating BST O(nlogn) then checking two tree for identical O(N) overall O(nlogn) ..we need there exist O(N) Time & O(1) Space also without extra space .Algorithm ?? DevoCoder guest Posted 3 months ago # #define true 1 #define false 0 int check(int a1[],int a2[],int n1,int n2) { int i; //n1 size of array a1[] and n2 size of a2[] if(n1!=n2) return false; //n1 and n2 must be same for(i=0;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

2710


‎How to define structures? · ‎

622


Does * p ++ increment p or what it points to?

609






What is a static variable in c?

663


What are the benefits of organizational structure?

566


What are the features of c language?

617


Can two or more operators such as and be combined in a single line of program code?

801


what will be maximum number of comparisons when number of elements are given?

1406


Write a program to print fibonacci series using recursion?

581


which is conditional construct a) if statement b) switch statement c) while/for d) goto

734


Differentiate between ordinary variable and pointer in c.

613


What is double pointer in c?

581


What is integer constants?

614