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 the return type of sizeof?
Can we change the value of #define in c?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What are dangling pointers? How are dangling pointers different from memory leaks?
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What do you mean by dynamic memory allocation in c? What functions are used?
What are header files and explain what are its uses in c programming?
What are the 5 types of inheritance in c ++?
How can you draw circles in C?
What is return type in c?
What is modifier & how many types of modifiers available in c?
What is c language in simple words?
Explain what is a 'locale'?
What are the 5 elements of structure?
What does c mean before a date?