11. 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 / priya
Answer is d
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
Explain can static variables be declared in a header file?
What is nested structure in c?
How can I open a file so that other programs can update it at the same time?
What is the use of clrscr?
What does 4d mean in c?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
What does *p++ do?
How can you avoid including a header more than once?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Can you please explain the scope of static variables?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
How can I write functions that take a variable number of arguments?
in linking some of os executables are linking name some of them
What does double pointer mean in c?
Explain what are global variables and explain how do you declare them?