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 / guest
Syntax error at line strcmp.....
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is the difference between char array and char pointer?
What is the use of linkage in c language?
how do you programme Carrier Sense Multiple Access
What are the string functions? List some string functions available in c.
How do I read the arrow keys? What about function keys?
What are the 32 keywords in c?
Do you know the use of fflush() function?
What is meant by int main ()?
How can I find the modification date and time of a file?
What is selection sort in c?
What is the difference between ‘g’ and “g” in C?
How reliable are floating-point comparisons?
What is an auto variable in c?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1