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
Explain what are bus errors, memory faults, and core dumps?
Which is the best website to learn c programming?
Where is volatile variable stored?
c program for searching a student details among 10 student details
Function calling procedures? and their differences? Why should one go for Call by Reference?
Which built-in library function can be used to match a patter from the string?
Can we declare variables anywhere in c?
program to convert a integer to string in c language'
What is the use of in c?
What are the advantages of using Unions?
Why is #define used?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
What are the characteristics of arrays in c?
what do u mean by Direct access files? then can u explain about Direct Access Files?
What is bubble sort in c?