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 is extern c used for?
What is a #include preprocessor?
What are the 4 types of organizational structures?
Explain how can I make sure that my program is the only one accessing a file?
Write a C program to count the number of email on text
diff between exptected result and requirement?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
Explain how does free() know explain how much memory to release?
Once I have used freopen, how can I get the original stdout (or stdin) back?
Why pointers are used in c?
What is a scope resolution operator in c?
Can we declare variable anywhere in c?
How can I make it pause before closing the program output window?
State the difference between x3 and x[3].
How can I run c program?