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
What does emoji p mean?
What is malloc and calloc?
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;i
How to define structures? ·
Does * p ++ increment p or what it points to?
What is a static variable in c?
What are the benefits of organizational structure?
What are the features of c language?
Can two or more operators such as and be combined in a single line of program code?
what will be maximum number of comparisons when number of elements are given?
Write a program to print fibonacci series using recursion?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
Differentiate between ordinary variable and pointer in c.
What is double pointer in c?
What is integer constants?