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
Answers were Sorted based on User's Feedback
Answer / kuldeep singh
undefined function call as ctrcpy() and , missing in
function strcmp()
after editing we get 0 answer............
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / vikram
the question is not correctly written;
undefined ctrcpy,no commas,no header file stdio.h;
if it is correctly written,then the output will be 0 since
the strings efghabcd match and we know that strcmp returns 0
if the two strings match
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
Why cant I open a file by its explicit path?
what is difference between procedural language and functional language ?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What is uint8 in c?
Stimulate calculator using Switch-case-default statement for two numbers
how many header file is in C language ?
44 Answers College School Exams Tests, CTS, IBM, IMS, Infosys, ME, Sign Solutions, Wipro, XVT,
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
which operator having lowest precedence?? a.)+ b.)++ c.)= d.)%
Write a program that receives as input a number omaadel-n-print, four digits.
#‎include‬<stdio.h> void main() { int i; for(i=5;0;i++) { printf("%d",i); } }
1 What is a Data Structure?
What is binary tree in c?