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 is integer constants?
What does 3 mean in texting?
What is pass by reference in c?
Differentiate between the = symbol and == symbol?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
What is optimization in c?
What are the different types of control structures?
What are pointers?
What happens if you free a pointer twice?
What is non linear data structure in c?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
What are the applications of c language?
What is the easiest sorting method to use?
Can we change the value of #define in c?
What is include directive in c?