wat is the output
int main()
{
char s1[]="Hello";
char s2[]="Hello";
if(s1==s2)
printf("Same");
else
printf("Diff");
}
Answer Posted / sumesh
ITS A WRONG METHOD TO COMPARISON OF TWO STRINGS..SO OUTPUT WILL BE CAN NOT CONVERT int * TO char *.
THANKS...
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
what do the 'c' and 'v' in argc and argv stand for?
What are structural members?
What the different types of arrays in c?
What is the purpose of scanf() and printf() functions?
How can I recover the file name given an open stream?
List a few unconditional control statement in c.
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
How is a null pointer different from a dangling pointer?
please send me the code for multiplying sparse matrix using c
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
What is the difference between typedef struct and struct?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
What is the difference between volatile and const volatile?
Why malloc is faster than calloc?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321